CVE-2021-22881
- State
- Published
- Severity
- Not scored
- Published
- Feb 11, 2021
- Updated
- Aug 3, 2024
- Reserved
- Jan 6, 2021
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.
Scores
The record has no CVSS score.
Weaknesses
- CWE-601 Open Redirect (CWE-601)
Affected Products
| Product | Versions |
|---|---|
https://github.com/rails/railsn/a |
|
References
- https://hackerone.com/reports/1047447
- https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130
- https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/
- FEDORA-2021-b571fca1b8vendor-advisory
- [oss-security] 20210505 [CVE-2021-22903] Possible Open Redirect Vulnerability in Action Packmailing-list
- [oss-security] 20210819 [CVE-2021-22942] Possible Open Redirect in Host Authorization Middlewaremailing-list
- [oss-security] 20211214 [CVE-2021-44528] Possible Open Redirect in Host Authorization Middlewaremailing-list
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.