# CVE-2021-22942: Open Redirect in ActionPack

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.70%, higher than 77% of CVEs (2026-12-01)
- Published: 2021-08-26T20:36:51.000Z
- Modified: 2026-06-17T03:38:04.503Z
- Also known as: GHSA-2rqw-v265-jf8c
- Weaknesses: CWE-601
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 6.1.4.1, 6.0.4.1
- actionpack (RubyGems): from 6.0.0 before 6.0.4.1; from 6.1.0 before 6.1.4.1
- rubyonrails rails: from 6.0.0 before 6.0.4.1; from 6.1.0 before 6.1.4.1

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://weblog.rubyonrails.org/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released/> (mitigation, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2021/12/14/5> (mailing-list, patch, third-party-advisory, web)
- <https://www.debian.org/security/2023/dsa-5372> (vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20240202-0005/>
- <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)
- <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> (web)

## Sources

- CVE List: [CVE-2021-22942](https://www.cve.org/CVERecord?id=CVE-2021-22942), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-2rqw-v265-jf8c](https://github.com/advisories/GHSA-2rqw-v265-jf8c), CC-BY-4.0, modified 2024-02-21
- NVD: [CVE-2021-22942](https://nvd.nist.gov/vuln/detail/CVE-2021-22942), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22942 · Whole record: https://cve.day/CVE-2021-22942.json · Rebuilt by cve.day 2026-11-25T22:58:04.523Z
