CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2024-26142?
CVE-2024-26142 is a high-severity vulnerability in Rubyonrails Rails, published on 27 Feb 2024.
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.
Weakness: CWE-1333
Which versions are affected by CVE-2024-26142?
3 open source packages ship an affected version, including rails and actionpack. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rails Bitnami | From 7.1.0 | 7.1.4 |
actionpack RubyGems | From 7.1.0 | 7.1.3.1 |
actionpack RubyGems | From 7.1.0 | 7.1.3.1 |
Products include Rubyonrails Rails.
How do I fix CVE-2024-26142?
Upgrade rails to 7.1.4 or later.
Is CVE-2024-26142 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-26142 exists.
Other vulnerabilities in Rubyonrails Rails
Sources
Also known as BIT-rails-2024-26142, GHSA-jjhx-jhvp-74wq, UBUNTU-CVE-2024-26142.