CVE-2021-22881
publishedrubygem-actionpack: open redirect vulnerability may lead to confidentiality and integrity compromise
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | https://github.com/rails/railsFixed in 6.1.2.1, 6.0.3.5 | Affected | Not stated | hackerone |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-actionpack-6.0aarch64 | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11318-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-actionpack-6.0ppc64le | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11318-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-actionpack-6.0s390x | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11318-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-actionpack-6.0x86_64 | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11318-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-actionpack-6.0aarch64 | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11318-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-actionpack-6.0ppc64le | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11318-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-actionpack-6.0s390x | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11318-1 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-actionpack-6.0x86_64 | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11318-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-actionpack-6.0aarch64 | Advisory build | 6.0.4.4-1.1 | OPENSUSE-SU-2024:11821-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-actionpack-6.0ppc64le | Advisory build | 6.0.4.4-1.1 | OPENSUSE-SU-2024:11821-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-actionpack-6.0s390x | Advisory build | 6.0.4.4-1.1 | OPENSUSE-SU-2024:11821-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-actionpack-6.0x86_64 | Advisory build | 6.0.4.4-1.1 | OPENSUSE-SU-2024:11821-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | https://github.com/rails/rails | Fixed in 6.1.2.1, 6.0.3.5 (affected) | hackerone · cna |
Weaknesses
1- CWE-601 Open Redirect (CWE-601)
References
7- [oss-security] 20210505 [CVE-2021-22903] Possible Open Redirect Vulnerability in Action Pack http://www.openwall.com/lists/oss-security/2021/05/05/2
- [oss-security] 20210819 [CVE-2021-22942] Possible Open Redirect in Host Authorization Middleware http://www.openwall.com/lists/oss-security/2021/08/20/1
- [oss-security] 20211214 [CVE-2021-44528] Possible Open Redirect in Host Authorization Middleware http://www.openwall.com/lists/oss-security/2021/12/14/5
- https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/
- https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130
- https://hackerone.com/reports/1047447
- FEDORA-2021-b571fca1b8 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/
Provider assertions
2hackerone · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 10006009798a19881d3ff85815e027203130515102179109417699308f73e9ad
- Ingested
- 23 Sep 2026, 07:52:45 UTC
- Source record
- Official CVE record