CVE-2021-22881
MEDIUM6.1EPSS 15.5%Actionpack Open Redirect Vulnerability
Published: 3/2/2021Modified: 2/20/2024
Also known as:GHSA-8877-prq4-9xfw
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.
Affected packages (2)
- Debian/railsfrom 0, < 2:6.0.3.5+dfsg-1
- RubyGems/actionpack>= 6.0.0, < 6.0.3.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (15)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-22881
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-22881
- WEBhttps://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization
- WEBhttps://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130
- WEBhttps://github.com/rails/rails
- WEBhttps://github.com/rails/rails/blob/v6.1.2.1/actionpack/CHANGELOG.md
- WEBhttps://github.com/rails/rails/commit/b5de7b3a4787d8a55aaad39f477c16e3af65e444
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22881.yml
- WEBhttps://groups.google.com/g/rubyonrails-security/c/zN_3qA26l6E
- WEBhttps://hackerone.com/reports/1047447
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3
- WEBhttps://rubygems.org/gems/actionpack
- WEBhttp://www.openwall.com/lists/oss-security/2021/05/05/2
- WEBhttp://www.openwall.com/lists/oss-security/2021/08/20/1
- WEBhttp://www.openwall.com/lists/oss-security/2021/12/14/5