CVE-2021-44528Rubyonrails Rails
Medium 6.1 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | 6.0.4.2 |
| rubyonrails | rails | 6.1.4.2 |
| rubyonrails | rails | 7.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- security.netapp.com
- www.debian.org