CVE-2024-47887 — Possible ReDoS vulnerability in actionpack
Possible ReDoS vulnerability in HTTP Token authentication in Action Controller
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.57%). Schedule for your next planned update.
Does your project use an affected actionpack version?
Paste your Gemfile.lock to check it for CVE-2024-47887 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
There is a possible ReDoS vulnerability in Action Controller's HTTP Token authentication. This vulnerability has been assigned the CVE identifier CVE-2024-47887.
Impact
For applications using HTTP Token authentication via authenticate_or_request_with_http_token or similar, a carefully crafted header may cause header parsing to take an unexpected amount of time, possibly resulting in a DoS vulnerability. All users running an affected release should either upgrade or apply the relevant patch immediately.
Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected. Rails 8.0.0.beta1 depends on Ruby 3.2 or greater so is unaffected.
Releases
The fixed releases are available at the normal locations.
Workarounds
Users on Ruby 3.2 are unaffected by this issue.
Credits
Thanks to scyoon for reporting
Advisory Timeline
- First published October 15, 2024 (771 days ago).
- Last revised October 31, 2024 — 16 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install actionpack -v 7.0.8.5
gem install actionpack -v 7.1.4.1
gem install actionpack -v 7.2.1.1
gem install actionpack -v 6.1.7.9
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| actionpack RubyGems · Affected: 7.0.0, 7.0.1, 7.0.2, 7.0.2.1 (+20 more) | 7.0.8.5 |
| actionpack RubyGems · Affected: 7.1.0, 7.1.1, 7.1.2, 7.1.3 (+5 more) | 7.1.4.1 |
| actionpack RubyGems · Affected: 7.2.0, 7.2.1 | 7.2.1.1 |
| actionpack RubyGems · Affected: 4.0.0, 4.0.1, 4.0.1.rc1, 4.0.1.rc2 (+242 more) | 6.1.7.9 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1333
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U
References
Frequently Asked Questions
- What is CVE-2024-47887?
- Possible ReDoS vulnerability in HTTP Token authentication in Action Controller. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2024-47887?
- CVE-2024-47887 affects actionpack. It has a 1.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-47887 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 75.7% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-126083HIGH
Action Pack: Possible IP spoofing in Action Dispatch RemoteIp
- CVE-2014-0130HIGH
actionpack Path Traversal vulnerability
- CVE-2016-2098HIGH
actionpack allows remote code execution via application's unrestricted use of render method
- CVE-2021-22904HIGH
Possible DoS Vulnerability in Action Controller Token Authentication
- CVE-2020-8164HIGH
Possible Strong Parameters Bypass in ActionPack
- CVE-2021-22903MEDIUM
Possible Open Redirect Vulnerability in Action Pack
- CVE-2023-22797MEDIUM
Open Redirect Vulnerability in Action Pack
- CVE-2024-26143MEDIUM
Rails has possible XSS Vulnerability in Action Controller