CVEfocus › CVE database › CVE-2025-46727

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

CVSS 7.5 HighEPSS 2.0% (higher than 81% of CVEs)Published 2025-05-07Updated 2025-05-08Assigner: GitHub_M

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.

CWE-400CWE-770

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, RubyGems, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

20Fixed
4Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10ruby-rackFixed3.1.16-0.1UBUNTU-CVE-2025-46727
Ubuntu 24.04ruby-rackFixed2.2.7-1ubuntu0.3UBUNTU-CVE-2025-46727
Ubuntu 22.04ruby-rackFixed2.1.4-5ubuntu1.2UBUNTU-CVE-2025-46727
Ubuntu 20.04ruby-rackFix pending2.0.7-2ubuntu0.1+esm7 (Ubuntu Pro)UBUNTU-CVE-2025-46727
Ubuntu 18.04ruby-rackFix pendingUBUNTU-CVE-2025-46727
Ubuntu 16.04ruby-rackFix pendingUBUNTU-CVE-2025-46727
Ubuntu 14.04ruby-rackFix pendingUBUNTU-CVE-2025-46727
Debian 14ruby-rackFixed3.1.16-0.1DEBIAN-CVE-2025-46727
Debian 13ruby-rackFixed3.1.16-0.1DEBIAN-CVE-2025-46727
Debian 12ruby-rackFixed2.2.20-0+deb12u1DEBIAN-CVE-2025-46727
Red Hat Enterprise Linux 10cockpit-ha-clusterFixed0:0.12.0-3.el10_0.2RHSA-2025:8319
Red Hat Enterprise Linux 10pcsFixed0:0.12.0-3.el10_0.2RHSA-2025:8319
Red Hat Enterprise Linux 10pcs-snmpFixed0:0.12.0-3.el10_0.2RHSA-2025:8319
Red Hat Enterprise Linux 9pcsFixed0:0.11.9-2.el9_6.1RHSA-2025:8256
Red Hat Enterprise Linux 9pcs-snmpFixed0:0.11.9-2.el9_6.1RHSA-2025:8256
Red Hat Enterprise Linux 8pcsFixed0:0.10.18-2.el8_10.5RHSA-2025:8254
Red Hat Enterprise Linux 8pcs-snmpFixed0:0.10.18-2.el8_10.5RHSA-2025:8254
Red Hat Enterprise Linux 7pcsFixed0:0.9.169-3.el7_9.4RHSA-2025:8322
Red Hat Enterprise Linux 7pcs-snmpFixed0:0.9.169-3.el7_9.4RHSA-2025:8322
AlmaLinux 8pcsFixed0.10.18-2.el8_10.5.alma.1ALSA-2025:8254
AlmaLinux 8pcs-snmpFixed0.10.18-2.el8_10.5.alma.1ALSA-2025:8254
Rocky Linux 9pcsFixed0:0.11.9-2.el9_6.1RLSA-2025:8256
Rocky Linux 8pcsFixed0:0.10.18-2.el8_10.5RLSA-2025:8254
RubyGems libraryrackFixed3.1.14GHSA-gjh7-p2fx-99vx

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.