CVE-2021-22881
Last modified
CVE-2021-22881 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an 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 87.30% chance of exploitation in the next 30 days.
Description
The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an 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. Impacted applications will have allowed hosts with a leading dot. When an allowed host contains a leading dot, a specially crafted `Host` header can be used to redirect to a malicious website.
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 |
|---|---|---|
| Rubyonrails | Rails | >= 6.0.0, < 6.0.3.5 |
| Rubyonrails | Rails | >= 6.1.0, < 6.1.2.1 |
| Fedoraproject | Fedora | 33 |
References
- http://www.openwall.com/lists/oss-security/2021/05/05/2Mailing List, Mitigation, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2021/08/20/1Mailing List, Mitigation, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2021/12/14/5Exploit, Mailing List, Patch
- https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/Patch, Third Party Advisory
- https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1047447Exploit, Patch, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2021/05/05/2Mailing List, Mitigation, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2021/08/20/1Mailing List, Mitigation, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2021/12/14/5Exploit, Mailing List, Patch
- https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/Patch, Third Party Advisory
- https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1047447Exploit, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-22881?
How severe is CVE-2021-22881?
How do I fix CVE-2021-22881?
Are you affected by CVE-2021-22881?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
