Vulnerability · Published May 27, 2021 · Assigned by hackerone
CVE-2021-22885
High 7.5
In plain English
A high-severity security flaw 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 4.0% (higher than 91% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)4.0%top 9.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:6.0.3.7+dfsg-1 | DEBIAN-CVE-2021-22885 |
| Debian:13 | rails | 2:6.0.3.7+dfsg-1 | DEBIAN-CVE-2021-22885 |
| Debian:14 | rails | 2:6.0.3.7+dfsg-1 | DEBIAN-CVE-2021-22885 |
| RubyGems | actionpack | 5.2.4.6 | GHSA-hjg4-8q5f-x6fm |
| RubyGems | actionpack | 6.0.3.7 | GHSA-hjg4-8q5f-x6fm |
| RubyGems | actionpack | 6.1.3.2 | GHSA-hjg4-8q5f-x6fm |
| RubyGems | actionpack | 5.2.6 | GHSA-hjg4-8q5f-x6fm |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2021-22885 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2021-22885 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2021-22885 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2021-22885 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | 6.1.3.1, 6.0.3.7, 5.2.4.6, 5.2.6 |
Weakness: CWE-209
References
- https://hackerone.com/reports/1106652 x_refsource_MISC
- DSA-4929 vendor-advisory, x_refsource_DEBIAN
- https://security.netapp.com/advisory/ntap-20210805-0009/ x_refsource_CONFIRM