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?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-22876curl 7.1.1 to and including 7.75.0 is vulnerable to an "Expo…5.3
- CVE-2021-22877A missing user check in Nextcloud prior to 20.0.6 inadverten…6.5
- CVE-2021-22878Nextcloud Server prior to 20.0.6 is vulnerable to reflected …4.8
- CVE-2021-22879Nextcloud Desktop Client prior to 3.1.3 is vulnerable to res…8.8
- CVE-2021-2288Vulnerability in the Oracle Bills of Material product of Ora…8.1
- CVE-2021-22880The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.…7.5
- CVE-2021-22882UniFi Protect before v1.17.1 allows an attacker to use spoof…7.5
- CVE-2021-22883Node.js before 10.24.0, 12.21.0, 14.16.0, and 15.10.0 is vul…7.5
- CVE-2021-22884Node.js before 10.24.0, 12.21.0, 14.16.0, and 15.10.0 is vul…7.5
- CVE-2021-22885A possible information disclosure / unintended method execut…7.5
- CVE-2021-22886Rocket.Chat before 3.11, 3.10.5, 3.9.7, 3.8.8 is vulnerable …6.1
- CVE-2021-22887A vulnerability in the BIOS of Pulse Secure (PSA-Series Hard…2.3
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
