CVE-2021-22942 json
Open Redirect in ActionPack
published 2021-08-26 5 y ago modified 2026-06-17 4 mo ago also GHSA-2rqw-v265-jf8c , EUVD-2021-1517
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems actionpack 6.0.4.1, 6.1.4.1
- rubyonrails rails 6.0.4.1, 6.1.4.1
- rails Debian 14, Debian 13, Debian 12 2:6.1.4.1+dfsg-3
debian advisories DEBIAN-CVE-2021-22942
- rubygem-actionpack-6.0 openSUSE Tumbleweed 6.0.4.4-1.1
opensuse advisories openSUSE-SU-2024:11821-1
- gitlab Arch Linux 14.5.0-1
arch linux advisories AVG-2492
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-22942 updated cvss 5.4
rubygem-actionpack: possible open redirect in the Host Authorization middleware
-
Red Hat Satellite 6 rubygem-actionpackaffected: no fix planned “Will not fix”
-
Red Hat CloudForms Management Engine 5 cfme-gemsetnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.70% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | actionpack | >=6.0.0, <6.0.4.1 >=6.1.0, <6.1.4.1 |
6.0.4.1 6.1.4.1 |
Affected products
- n/a https://github.com/rails/rails
Classification
- Weakness
-
- CWE-601 URL Redirection to Untrusted Site
- Technology feeds
References
-
openwall.com
/lists/oss-security/2021/12/14/5
mailing-list, web, patch, third-party-advisory
-
debian.org
/security/2023/dsa-5372
vendor-advisory, web
-
weblog.rubyonrails.org
/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released/
mitigation, vendor-advisory
- security.netapp.com /advisory/ntap-20240202-0005/
-
nvd.nist.gov
/vuln/detail/CVE-2021-22942
advisory
-
access.redhat.com
/security/cve/cve-2021-22942
web
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22942.yml
web
-
groups.google.com
/g/rubyonrails-security/c/wB5tRn7h36c
web
-
rubygems.org
/gems/actionpack
web
-
security.netapp.com
/advisory/ntap-20240202-0005
web
-
weblog.rubyonrails.org
/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released
web
Sources
- CVE List CVE-2021-22942
- GitHub Advisory GHSA-2rqw-v265-jf8c
- NVD CVE-2021-22942
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.