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. References: https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130
Created rubygem-actionpack tracking bugs for this issue: Affects: fedora-all [bug 1930212]
Statement: Red Hat Satellite does not make use of the config.hosts setting and is not affected by this CVE.
Hackerone's report: https://hackerone.com/reports/1047447
Upstream patches: 6-1-stable: https://github.com/rails/rails/commit/b5de7b3a4787d8a55aaad39f477c16e3af65e444 6-0-stable: https://github.com/rails/rails/commit/e33092740b3cc05f5abee197a5982eac31947e92
External References: https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2021-22881