CVE-2021-22881
published 2021-02-11CVE-2021-22881: 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…
medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
EXPLOIT
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
19 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| actionpack_project | actionpack | >= 6.0.0 < 6.0.4.2 | 6.0.4.2 |
| actionpack_project | actionpack | >= 6.0.0 < 6.0.3.5 | 6.0.3.5 |
| actionpack_project | actionpack | >= 6.0.0 < 6.0.4.1 | 6.0.4.1 |
| actionpack_project | actionpack | >= 6.1.0 < 6.1.4.2 | 6.1.4.2 |
| actionpack_project | actionpack | >= 6.1.0 < 6.1.2.1 | 6.1.2.1 |
| actionpack_project | actionpack | >= 6.1.0 < 6.1.4.1 | 6.1.4.1 |
| actionpack_project | actionpack | >= 6.1.0.rc2 < 6.1.3.2 | 6.1.3.2 |
| debian | rails | < rails 2:6.0.3.5+dfsg-1 (bookworm) | rails 2:6.0.3.5+dfsg-1 (bookworm) |
| debian | rails | — | — |
| fedoraproject | fedora | — | — |
| https | github.com_rails_rails | — | — |
| rubyonrails | rails | — | — |
| rubyonrails | rails | >= 0 < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| rubyonrails | rails | >= 0 < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| rubyonrails | rails | >= 0 < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| rubyonrails | rails | >= 0 < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| rubyonrails | rails | >= 6.0.0 < 6.0.3.5 | 6.0.3.5 |
| rubyonrails | rails | >= 6.1.0 < 6.1.2.1 | 6.1.2.1 |
| rubyonrails | rails | >= 6.1.1 < 6.1.3.2 | 6.1.3.2 |
CVSS provenance
nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
ghsa6.1MEDIUM
osv6.1MEDIUM