CVE-2021-22885Rubyonrails Rails
High 7.5 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 4.0% probability of exploitation in 30 days · percentile 91
- Auth required
- No
- Published
- May 27, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-209
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionpack |
≥ 6.0.0 < 6.0.3.7 |
6.0.3.7 |
gem "actionpack", ">= 6.0.3.7" |
| RubyGems | actionpack |
≥ 6.1.0 < 6.1.3.2 |
6.1.3.2 |
gem "actionpack", ">= 6.1.3.2" |
| RubyGems | actionpack |
≥ 5.2.5 < 5.2.6 |
5.2.6 |
gem "actionpack", ">= 5.2.6" |
| RubyGems | actionpack |
≥ 2.0.0 < 5.2.4.6 |
5.2.4.6 |
gem "actionpack", ">= 5.2.4.6" |
Per OSV / GitHub Advisories (GHSA-hjg4-8q5f-x6fm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | ≥ 5.2.0.0 < 5.2.4.6 |
| rubyonrails | rails | ≥ 6.0.0.0 < 6.0.3.7 |
| rubyonrails | rails | ≥ 6.1.0.0 < 6.1.3.1 |
| rubyonrails | actionpack_page-caching | all |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- hackerone.com Exploit Third Party Advisory
- security.netapp.com Third Party Advisory
- www.debian.org Third Party Advisory