CVE-2021-22881
MEDIUM NUCLEIAction Pack <6.1.2.1, 6.0.3.5 - Open Redirect
Title source: llmExploitation Summary
CVE-2021-22881 has a Nuclei detection template available — see the Nuclei card below for the Shodan/FOFA recon queries.
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.
Nuclei Templates (1)
Ruby on Rails - Open Redirect via Host Header Injection
MEDIUMby theamanrawat
References (7)
Core 7
Core References
Exploit, Patch, Third Party Advisory x_refsource_misc
https://hackerone.com/reports/1047447
Mitigation, Patch, Vendor Advisory x_refsource_misc
https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130
Patch, Third Party Advisory x_refsource_misc
https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/
Mailing List, Third Party Advisory vendor-advisory
x_refsource_fedora
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/
Mailing List, Mitigation, Third Party Advisory mailing-list
x_refsource_mlist
http://www.openwall.com/lists/oss-security/2021/05/05/2
Mailing List, Mitigation, Third Party Advisory mailing-list
x_refsource_mlist
http://www.openwall.com/lists/oss-security/2021/08/20/1
Exploit, Mailing List, Patch mailing-list
x_refsource_mlist
http://www.openwall.com/lists/oss-security/2021/12/14/5
Scores
CVSS v3
6.1
EPSS
0.8724
EPSS Percentile
99.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Details
CWE
CWE-601
Status
published
Products (3)
fedoraproject/fedora
33
rubygems/actionpack
6.0.0 - 6.0.3.5RubyGems
rubyonrails/rails
6.0.0 - 6.0.3.5
Published
Feb 11, 2021
Tracked Since
Feb 18, 2026