{"id":"CVE-2021-22881","state":"PUBLISHED","title":"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 \"","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.","publishedAt":"2021-02-11T16:12:34.000Z","updatedAt":"2024-08-03T18:58:24.786Z","severity":null,"assigner":"hackerone","products":["n/a https://github.com/rails/rails"],"affected":[{"vendor":"n/a","product":"https://github.com/rails/rails","versions":[{"version":"Fixed in 6.1.2.1, 6.0.3.5","status":"affected"}]}],"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/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/","http://www.openwall.com/lists/oss-security/2021/05/05/2","http://www.openwall.com/lists/oss-security/2021/08/20/1","http://www.openwall.com/lists/oss-security/2021/12/14/5"],"weaknesses":["CWE-601"],"ingestedAt":"2026-10-29T19:48:02.192Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/22xxx/CVE-2021-22881.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-22881","state":"PUBLISHED","datePublished":"2021-02-11T16:12:34.000Z","dateUpdated":"2024-08-03T18:58:24.786Z","assignerShortName":"hackerone","assignerOrgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","dateReserved":"2021-01-06T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"https://github.com/rails/rails","versions":[{"version":"Fixed in 6.1.2.1, 6.0.3.5","status":"affected"}]}],"references":[{"url":"https://hackerone.com/reports/1047447","tags":["x_refsource_MISC"]},{"url":"https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130","tags":["x_refsource_MISC"]},{"url":"https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/","name":"FEDORA-2021-b571fca1b8","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.openwall.com/lists/oss-security/2021/05/05/2","name":"[oss-security] 20210505 [CVE-2021-22903] Possible Open Redirect Vulnerability in Action Pack","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2021/08/20/1","name":"[oss-security] 20210819 [CVE-2021-22942] Possible Open Redirect in Host Authorization Middleware","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2021/12/14/5","name":"[oss-security] 20211214 [CVE-2021-44528] Possible Open Redirect in Host Authorization Middleware","tags":["mailing-list","x_refsource_MLIST"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-601","description":"Open Redirect (CWE-601)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"hackerone","dateUpdated":"2021-12-14T21:06:20.000Z","orgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"support@hackerone.com","ID":"CVE-2021-22881","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"https://github.com/rails/rails","version":{"version_data":[{"version_value":"Fixed in 6.1.2.1, 6.0.3.5"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Open Redirect (CWE-601)"}]}]},"references":{"reference_data":[{"name":"https://hackerone.com/reports/1047447","refsource":"MISC","url":"https://hackerone.com/reports/1047447"},{"name":"https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130","refsource":"MISC","url":"https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130"},{"name":"https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/","refsource":"MISC","url":"https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/"},{"name":"FEDORA-2021-b571fca1b8","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/"},{"name":"[oss-security] 20210505 [CVE-2021-22903] Possible Open Redirect Vulnerability in Action Pack","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2021/05/05/2"},{"name":"[oss-security] 20210819 [CVE-2021-22942] Possible Open Redirect in Host Authorization Middleware","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2021/08/20/1"},{"name":"[oss-security] 20211214 [CVE-2021-44528] Possible Open Redirect in Host Authorization Middleware","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2021/12/14/5"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://hackerone.com/reports/1047447","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/","name":"FEDORA-2021-b571fca1b8","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2021/05/05/2","name":"[oss-security] 20210505 [CVE-2021-22903] Possible Open Redirect Vulnerability in Action Pack","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2021/08/20/1","name":"[oss-security] 20210819 [CVE-2021-22942] Possible Open Redirect in Host Authorization Middleware","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2021/12/14/5","name":"[oss-security] 20211214 [CVE-2021-44528] Possible Open Redirect in Host Authorization Middleware","tags":["mailing-list","x_refsource_MLIST","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T18:58:24.786Z"}}]}}}