CVE-2021-44528 actionpack Open Redirect in Host Authorization Middleware

Medium 6.1 Published Updated

Attackers can redirect users to malicious sites via crafted headers in Action Pack when specific host authorization settings are enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-44528?

CVE-2021-44528 is a medium-severity vulnerability in Rubyonrails Rails, published on 7 Jan 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A open redirect vulnerability exists in Action Pack >= 6.0.0 that could allow an attacker to craft a "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.

Weakness: CWE-601

Which versions are affected by CVE-2021-44528?

5 open source packages ship an affected version, including rails and actionpack. It affects 1 product.

PackageAffectedFixed in
rails BitnamiFrom 7.0.0-rc2 to 7.0.0-rc2None
actionpack RubyGemsFrom 6.0.06.0.4.2
actionpack RubyGemsFrom 6.0.06.0.4.2
actionpack RubyGemsFrom 6.1.06.1.4.2
actionpack RubyGemsFrom 6.1.06.1.4.2

Products include Rubyonrails Rails.

How do I fix CVE-2021-44528?

Apply the vendor's patch.

Is CVE-2021-44528 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-44528 exists.

Public exploit code: 1 Nuclei template.

All Rubyonrails Rails vulnerabilities

Sources

Also known as BIT-rails-2021-44528, DEBIAN-CVE-2021-44528, GHSA-qphc-hf5q-v8fc, UBUNTU-CVE-2021-44528.

Is CVE-2021-44528 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free