Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
Summary
Rails is a web-application framework. Starting in version 7.1.0, there is a possible ReDoS vulnerability in the Accept header parsing routines of Action Dispatch. This vulnerability is patched in 7.1.3.1. Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | rails | 7.1.0 to before 7.1.3.1 | 7.1.3.1 | Patch available | CNA |
| — | actionpack (RubyGems) | 7.1.0 to before 7.1.3.1 | 7.1.3.1 | Patch available | GHSA-jjhx-jhvp-74wq |
- rails VendorRails Affected 7.1.0 to before 7.1.3.1 Fixed in 7.1.3.1 Patch available CNA
- actionpack (RubyGems) Vendor— Affected 7.1.0 to before 7.1.3.1 Fixed in 7.1.3.1 Patch available GHSA-jjhx-jhvp-74wq
Remediation
- Fix · CNA rails (rails) Fixed in 7.1.3.1
- Fix · GHSA-jjhx-jhvp-74wq actionpack (RubyGems) Fixed in 7.1.3.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix planned: Will not fix |
Not affected: 1 product
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2024-26142
- 2026-10-03 Alias added: GHSA-jjhx-jhvp-74wq
References
Advisory 5
- https://github.com/rails/rails/security/advisories/GHSA-jjhx-jhvp-74wq
- https://discuss.rubyonrails.org/t/possible-redos-vulnerability-in-accept-header-parsing-in-action-dispatch/84946
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26142.yml
- https://security.netapp.com/advisory/ntap-20240503-0003/
- https://nvd.nist.gov/vuln/detail/CVE-2024-26142
More Rails vulnerabilities
- TI-2014-00124 Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the… KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 Path traversal in Rails https://github.com/rails/rails KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x… KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2020-06581 Code injection in https://github.com/rails/rails CVSS 3.1HIGH 8.8
- TI-2013-00091 active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before… CVSS 2.0HIGH 7.5
Sources
- CVE-2024-26142 · CVE Program
- CVE-2024-26142 · NVD
- FIRST EPSS
- GHSA-jjhx-jhvp-74wq · GitHub Advisory Database · CC BY 4.0
- CVE-2024-26142 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences