CVE-2021-22881

MEDIUMCVSS 6.1/10EPSS 87.30%

Last modified

CVE-2021-22881 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 87.30% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
6.1/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS Probability
87.30%

99.7th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
RubyonrailsRails>= 6.0.0, < 6.0.3.5
RubyonrailsRails>= 6.1.0, < 6.1.2.1
FedoraprojectFedora33

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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 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.
How severe is CVE-2021-22881?
CVE-2021-22881 has a CVSS score of 6.1/10 (MEDIUM severity). The EPSS model estimates a 87.30% probability of exploitation in the next 30 days.
How do I fix CVE-2021-22881?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-22881?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST