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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.5%top 25.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
RubyGemsactionpack7.1.3.1GHSA-jjhx-jhvp-74wq
Ubuntu:24.04:LTSrailsno fix listedUBUNTU-CVE-2024-26142
Ubuntu:25.10railsno fix listedUBUNTU-CVE-2024-26142
Ubuntu:26.04:LTSrailsno fix listedUBUNTU-CVE-2024-26142
Ubuntu:26.10railsno fix listedUBUNTU-CVE-2024-26142

Affected products (as reported)

VendorProductVersions
rails rails >= 7.1.0, < 7.1.3.1

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References