Vulnerability · Published Feb 27, 2024 · Assigned by GitHub_M
CVE-2024-26142Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
High 7.5
In plain English
A high-severity regular-expression denial of service in rails from rails. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| RubyGems | actionpack | 7.1.3.1 | GHSA-jjhx-jhvp-74wq |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2024-26142 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2024-26142 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2024-26142 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2024-26142 |
Affected products (as reported)
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/rails/rails/security/advisories/GHSA-jjhx-jhvp-74wq x_refsource_CONFIRM
- https://github.com/rails/rails/commit/b4d3bfb5ed8a5b5a90aad3a3b28860c7a931e272 x_refsource_MISC
- https://discuss.rubyonrails.org/t/possible-redos-vulnerability-in-accept-header-parsing-in-action-dispatch/84946 x_refsource_MISC
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26142.yml x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20240503-0003/