CVE-2021-22881

Summary

CVECVE-2021-22881
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-02-11 18:15:00 UTC
Updated2023-11-07 03:30:00 UTC
DescriptionThe 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.

Risk And Classification

Problem Types: CWE-601

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 33 All All All
Application Rubyonrails Rails All All All All
Application Rubyonrails Rails All All All All

References

ReferenceSourceLinkTags
oss-security - [CVE-2021-22903] Possible Open Redirect Vulnerability in Action Pack MLIST www.openwall.com
oss-security - [CVE-2021-44528] Possible Open Redirect in Host Authorization Middleware MLIST www.openwall.com
[CVE-2021-22881] Possible Open Redirect in Host Authorization Middleware - Security Announcements - Ruby on Rails Discussions MISC discuss.rubyonrails.org Mitigation, Patch, Vendor Advisory
HackerOne MISC hackerone.com Exploit, Patch, Third Party Advisory
oss-security - [CVE-2021-22942] Possible Open Redirect in Host Authorization Middleware MLIST www.openwall.com
[SECURITY] Fedora 33 Update: rubygem-actionpack-6.0.3.4-2.fc33 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[CVE-2021-22881] Faille de sécurité dans le middleware HostAuthorization – Benjamin Bouchet MISC benjamin-bouchet.com Patch, Third Party Advisory
[SECURITY] Fedora 33 Update: rubygem-actionpack-6.0.3.4-2.fc33 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 180343 Debian Security Update for rails (CVE-2021-22881)
  • 281541 Fedora Security Update for rubygem (FEDORA-2021-b571fca1b8)
  • 690374 Free Berkeley Software Distribution (FreeBSD) Security Update for rails (8e670b85-706e-11eb-abb2-08002728f74c)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report