CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch

High 7.5 Published Updated
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.

PackageAffectedFixed in
rails BitnamiFrom 7.1.07.1.4
actionpack RubyGemsFrom 7.1.07.1.3.1
actionpack RubyGemsFrom 7.1.07.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.

All Rubyonrails Rails vulnerabilities

Sources

Also known as BIT-rails-2024-26142, GHSA-jjhx-jhvp-74wq, UBUNTU-CVE-2024-26142.

Is CVE-2024-26142 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free