Vulnerability · Published Oct 18, 2021 · Assigned by hackerone
CVE-2021-22942
Medium 6.1
In plain English
A medium-severity open redirect in https://github.com/rails/rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)1.7%top 22.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:6.1.4.1+dfsg-3 | DEBIAN-CVE-2021-22942 |
| Debian:13 | rails | 2:6.1.4.1+dfsg-3 | DEBIAN-CVE-2021-22942 |
| Debian:14 | rails | 2:6.1.4.1+dfsg-3 | DEBIAN-CVE-2021-22942 |
| RubyGems | actionpack | 6.0.4.1 | GHSA-2rqw-v265-jf8c |
| RubyGems | actionpack | 6.1.4.1 | GHSA-2rqw-v265-jf8c |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2021-22942 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2021-22942 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2021-22942 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2021-22942 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | 6.1.4.1, 6.0.4.1 |
Weakness: CWE-601