# CVE-2021-22885: Action Pack contains Information Disclosure / Unintended Method Execution vulnerability

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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): 4.05%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-05T19:49:02.000Z
- Modified: 2026-06-17T03:37:56.970Z
- Also known as: GHSA-hjg4-8q5f-x6fm
- Weaknesses: CWE-200, CWE-209
- Assigned by: hackerone

## Description

A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2.0.0 when using the `redirect_to` or `polymorphic_url`helper with untrusted user input.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 6.1.3.1, 6.0.3.7, 5.2.4.6, 5.2.6
- actionpack (RubyGems): from 6.0.0 before 6.0.3.7; from 6.1.0 before 6.1.3.2; from 5.2.5 before 5.2.6; from 2.0.0 before 5.2.4.6
- rubyonrails rails: from 5.2.0.0 before 5.2.4.6; from 6.0.0.0 before 6.0.3.7; from 6.1.0.0 before 6.1.3.1
- rubyonrails actionpack_page-caching: no versions given
- debian debian_linux: 10.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://hackerone.com/reports/1106652> (exploit, third-party-advisory, web)
- <https://www.debian.org/security/2021/dsa-4929> (third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20210805-0009/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22885> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22885.yml> (web)
- <https://groups.google.com/g/rubyonrails-security/c/NiQl-48cXYI> (web)
- <https://security.netapp.com/advisory/ntap-20210805-0009> (web)

## Sources

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

---

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