CVE-2021-22903
Last modified
CVE-2021-22903 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. The actionpack ruby gem before 6.1.3.2 suffers from a possible open redirect vulnerability. Specially crafted Host headers in combination with certain "allowed host" formats can cause the Host Authorization middleware in Action Pack to redirect users to a malicious website. EPSS estimates a 1.22% chance of exploitation in the next 30 days.
Description
The actionpack ruby gem before 6.1.3.2 suffers from a possible open redirect vulnerability. Specially crafted Host headers in combination with certain "allowed host" formats can cause the Host Authorization middleware in Action Pack to redirect users to a malicious website. This is similar to CVE-2021-22881. Strings in config.hosts that do not have a leading dot are converted to regular expressions without proper escaping. This causes, for example, `config.hosts << "sub.example.com"` to permit a request with a Host header value of `sub-example.com`.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Rubyonrails | Rails | >= 6.1.1, < 6.1.3.2 | — |
| Rubyonrails | Rails | 6.1.0 | Rc2 |
References
- https://discuss.rubyonrails.org/t/cve-2021-22903-possible-open-redirect-vulnerability-in-action-pack/77867Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1148025Permissions Required, Third Party Advisory
- https://discuss.rubyonrails.org/t/cve-2021-22903-possible-open-redirect-vulnerability-in-action-pack/77867Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1148025Permissions Required, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-22903?
How severe is CVE-2021-22903?
How do I fix CVE-2021-22903?
Are you affected by CVE-2021-22903?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
