CVE-2021-22942
MEDIUM 6.1CVSS 3.1Open Redirect in ActionPack
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.
- Published
- 18 Oct 2021
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-601
- Also known as
- GHSA-2rqw-v265-jf8c
- Sources
- NVDJSONOSV GHSA-2rqw-v265-jf8cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
>= 6.0.0, < 6.0.4.1 | 6.0.4.1 |
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
>= 6.1.0, < 6.1.4.1 | 6.1.4.1 |
| OSV | RubyGems | actionpack | >= 6.0.0, < 6.0.4.1 | 6.0.4.1 |
| OSV | RubyGems | actionpack | >= 6.1.0, < 6.1.4.1 | 6.1.4.1 |
References
- http://www.openwall.com/lists/oss-security/2021/12/14/5 · Mailing List, Patch, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20240202-0005/ · WEB
- https://weblog.rubyonrails.org/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released/ · Mitigation, Vendor Advisory, WEB
- https://www.debian.org/security/2023/dsa-5372 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-22942 · ADVISORY
- https://access.redhat.com/security/cve/cve-2021-22942 · WEB
- https://github.com/rails/rails · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22942.yml · WEB
- https://groups.google.com/g/rubyonrails-security/c/wB5tRn7h36c · WEB
- https://rubygems.org/gems/actionpack · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 18 Oct 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Aug 2021)