Vulnerability · Published Feb 28, 2024 · Assigned by GitHub_M

CVE-2024-25126Rack ReDos in content type parsing (2nd degree polynomial)

Medium 5.3

In plain English

A medium-severity regular-expression denial of service in rack from rack. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 35.4% (higher than 98% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is patched in 3.0.9.1 and 2.2.8.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pcs0.10.18-2.el8_10ALSA-2024:2953
AlmaLinux:9pcs0.11.7-2.el9_4ALSA-2024:2113
AlmaLinux:8pcs-snmp0.10.18-2.el8_10ALSA-2024:2953
AlmaLinux:9pcs-snmp0.11.7-2.el9_4ALSA-2024:2113
Debian:12ruby-rack2.2.6.4-1+deb12u1DSA-5698-1
Debian:12ruby-rack2.2.6.4-1+deb12u1DEBIAN-CVE-2024-25126
Debian:13ruby-rack2.2.7-1.1DEBIAN-CVE-2024-25126
Debian:14ruby-rack2.2.7-1.1DEBIAN-CVE-2024-25126
Rocky Linux:8pcs0:0.10.18-2.el8_10RLSA-2024:2953
RubyGemsrack2.2.8.1GHSA-22f2-v57c-j9cx
RubyGemsrack3.0.9.1GHSA-22f2-v57c-j9cx
Ubuntu:22.04:LTSruby-rack2.1.4-5ubuntu1.1UBUNTU-CVE-2024-25126
Ubuntu:22.04:LTSruby-rack2.1.4-5ubuntu1.1USN-7036-1
Ubuntu:24.04:LTSruby-rack2.2.7-1ubuntu0.1USN-6837-1
Ubuntu:24.04:LTSruby-rack2.2.7-1ubuntu0.1UBUNTU-CVE-2024-25126

Affected products (as reported)

VendorProductVersions
rack rack >= 3.0.0, < 3.0.9.1>= 0.4, < 2.2.8.1

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

References