cbcvebase.
CVE-2021-22881
published 2021-02-11

CVE-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
VendorProductVersion rangeFixed in
actionpack_projectactionpack>= 6.0.0 < 6.0.4.26.0.4.2
actionpack_projectactionpack>= 6.0.0 < 6.0.3.56.0.3.5
actionpack_projectactionpack>= 6.0.0 < 6.0.4.16.0.4.1
actionpack_projectactionpack>= 6.1.0 < 6.1.4.26.1.4.2
actionpack_projectactionpack>= 6.1.0 < 6.1.2.16.1.2.1
actionpack_projectactionpack>= 6.1.0 < 6.1.4.16.1.4.1
actionpack_projectactionpack>= 6.1.0.rc2 < 6.1.3.26.1.3.2
debianrails< rails 2:6.0.3.5+dfsg-1 (bookworm)rails 2:6.0.3.5+dfsg-1 (bookworm)
debianrails
fedoraprojectfedora
httpsgithub.com_rails_rails
rubyonrailsrails
rubyonrailsrails>= 0 < 2:6.0.3.5+dfsg-12:6.0.3.5+dfsg-1
rubyonrailsrails>= 0 < 2:6.0.3.5+dfsg-12:6.0.3.5+dfsg-1
rubyonrailsrails>= 0 < 2:6.0.3.5+dfsg-12:6.0.3.5+dfsg-1
rubyonrailsrails>= 0 < 2:6.0.3.5+dfsg-12:6.0.3.5+dfsg-1
rubyonrailsrails>= 6.0.0 < 6.0.3.56.0.3.5
rubyonrailsrails>= 6.1.0 < 6.1.2.16.1.2.1
rubyonrailsrails>= 6.1.1 < 6.1.3.26.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