Live threats

All CVEs / Rubyonrails

CVE-2021-44528Rubyonrails Rails

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
4.4%
probability of exploitation in 30 days · percentile 92
Auth required
No
Published
Jan 10, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-601
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rails.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems actionpack ≥ 6.0.0 < 6.0.4.2 6.0.4.2 gem "actionpack", ">= 6.0.4.2"
RubyGems actionpack ≥ 6.1.0 < 6.1.4.2 6.1.4.2 gem "actionpack", ">= 6.1.4.2"

Per OSV / GitHub Advisories (GHSA-qphc-hf5q-v8fc). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rubyonrailsrails6.0.4.2
rubyonrailsrails6.1.4.2
rubyonrailsrails7.0.0

Official sources

References

Links published by the sources. Open them with care.