What’s Vulnerable › Vulnerabilities
CVE-2021-22942
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-10-18 · updated 2026-06-17
- Weakness: CWE-601
Description
A possible open redirect vulnerability in the Host Authorization middleware in Action Pack >= 6.0.0 that could allow attackers to redirect users to a malicious website.
Affected products
- Ruby on Rails: from 6.0.0 before 6.0.4.1; from 6.1.0 before 6.1.4.1 — fixed in 6.0.4.1, 6.1.4.1
How to fix
Upgrade to a fixed version: Ruby on Rails 6.0.4.1, 6.1.4.1. Check the vendor advisory for mitigations.
References
- http://www.openwall.com/lists/oss-security/2021/12/14/5
- https://security.netapp.com/advisory/ntap-20240202-0005/
- https://weblog.rubyonrails.org/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released/
- https://www.debian.org/security/2023/dsa-5372
- http://www.openwall.com/lists/oss-security/2021/12/14/5
- https://security.netapp.com/advisory/ntap-20240202-0005/
- https://weblog.rubyonrails.org/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released/
- https://www.debian.org/security/2023/dsa-5372
Get alerted when CVE-2021-22942 or the next vulnerability affects your stack