Vulnerability · Published May 7, 2025 · Assigned by GitHub_M

CVE-2025-46727Unbounded-Parameter DoS in Rack::QueryParser

High 7.5

In plain English

A high-severity uncontrolled resource consumption in rack from rack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

Rack is a modular Ruby web server interface. Prior to versions 2.2.14, 3.0.16, and 3.1.14, `Rack::QueryParser` parses query strings and `application/x-www-form-urlencoded` bodies into Ruby data structures without imposing any limit on the number of parameters, allowing attackers to send requests with extremely large numbers of parameters. The vulnerability arises because `Rack::QueryParser` iterates over each `&`-separated key-value pair and adds it to a Hash without enforcing an upper bound on the total number of parameters. This allows an attacker to send a single request containing hundreds of thousands (or more) of parameters, which consumes excessive memory and CPU during parsing. An attacker can trigger denial of service by sending specifically crafted HTTP requests, which can cause memory exhaustion or pin CPU resources, stalling or crashing the Rack server. This results in full service disruption until the affected worker is restarted. Versions 2.2.14, 3.0.16, and 3.1.14 fix the issue. Some other mitigations are available. One may use middleware to enforce a maximum query string size or parameter count, or employ a reverse proxy (such as Nginx) to limit request sizes and reject oversized query strings or bodies. Limiting request body sizes and query string lengths at the web server or CDN level is an effective mitigation.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pcs0.10.18-2.el8_10.5.alma.1ALSA-2025:8254
AlmaLinux:8pcs-snmp0.10.18-2.el8_10.5.alma.1ALSA-2025:8254
Debian:12ruby-rack2.2.20-0+deb12u1DEBIAN-CVE-2025-46727
Debian:13ruby-rack3.1.16-0.1DEBIAN-CVE-2025-46727
Debian:14ruby-rack3.1.16-0.1DEBIAN-CVE-2025-46727
Rocky Linux:8pcs0:0.10.18-2.el8_10.5RLSA-2025:8254
Rocky Linux:9pcs0:0.11.9-2.el9_6.1RLSA-2025:8256
RubyGemsrack3.1.14GHSA-gjh7-p2fx-99vx
RubyGemsrack2.2.14GHSA-gjh7-p2fx-99vx
RubyGemsrack3.0.16GHSA-gjh7-p2fx-99vx
Ubuntu:22.04:LTSruby-rack2.1.4-5ubuntu1.2UBUNTU-CVE-2025-46727
Ubuntu:24.04:LTSruby-rack2.2.7-1ubuntu0.3USN-7507-1
Ubuntu:24.04:LTSruby-rack2.2.7-1ubuntu0.3UBUNTU-CVE-2025-46727
Ubuntu:25.10ruby-rack3.1.16-0.1UBUNTU-CVE-2025-46727

Affected products (as reported)

VendorProductVersions
rack rack < 2.2.14>= 3.0, < 3.0.16>= 3.1, < 3.1.14

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

References