Loading...
Skip to main content

CVE-2021-44528

MEDIUM

actionpack Open Redirect in Host Authorization Middleware

Published December 14, 2021Updated March 6, 2024Source: osv

Summary

Specially crafted "X-Forwarded-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. For example, configuration files that look like this: ``` config.hosts << '.EXAMPLE.com' ``` When an allowed host contains a leading dot, a specially crafted Host header can be used to redirect to a malicious website. This vulnerability is similar to CVE-2021-22881 and CVE-2021-22942. Releases -------- The fixed releases are available at the normal locations. Patches ------- To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset. * 6-0-host-authorzation-open-redirect.patch - Patch for 6.0 series * 6-1-host-authorzation-open-redirect.patch - Patch for 6.1 series * 7-0-host-authorzation-open-redirect.patch - Patch for 7.0 series Please note that only the 6.1.Z, 6.0.Z, and 5.2.Z series are supported at present. Users of earlier unsupported releases are advised to upgrade as soon as possible as we cannot guarantee the continued availability of security fixes for unsupported releases.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update actionpack to 6.1.4.2 or later
gem install actionpack -v 6.1.4.2
Bundler
Update actionpack to 6.0.4.2 or later
gem install actionpack -v 6.0.4.2

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
actionpack
rubygems
6.1.0, 6.1.1, 6.1.2, 6.1.2.1 (+5 more)6.1.4.2
actionpack
rubygems
6.0.0, 6.0.1, 6.0.1.rc1, 6.0.2 (+15 more)6.0.4.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

Frequently Asked Questions

What is CVE-2021-44528?
actionpack Open Redirect in Host Authorization Middleware This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
How do I check if my project is affected by CVE-2021-44528?
CVE-2021-44528 affects actionpack. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-44528 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.1

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-qphc-hf5q-v8fc
BIT-rails-2021-44528

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies