CVE-2021-22903: Possible Open Redirect Vulnerability in Action Pack
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.36554%
CWE
Published
5/5/2021
Updated
8/17/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
actionpack | rubygems | >= 6.1.0.rc2, < 6.1.3.2 | 6.1.3.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper regex escaping in host validation logic. The workaround explicitly patches the sanitize_string method to add Regexp.escape, and the advisory explains that non-dot-prefixed hosts were converted to unsafe regex patterns. This function is directly responsible for processing allowed hosts into match patterns, making it the clear vulnerability source.