CVE-2025-46727Unbounded-Parameter DoS in Rack::QueryParser
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | ruby-rack | Fixed | 3.1.16-0.1 | UBUNTU-CVE-2025-46727 |
| Ubuntu 24.04 | ruby-rack | Fixed | 2.2.7-1ubuntu0.3 | UBUNTU-CVE-2025-46727 |
| Ubuntu 22.04 | ruby-rack | Fixed | 2.1.4-5ubuntu1.2 | UBUNTU-CVE-2025-46727 |
| Ubuntu 20.04 | ruby-rack | Fix pending | 2.0.7-2ubuntu0.1+esm7 (Ubuntu Pro) | UBUNTU-CVE-2025-46727 |
| Ubuntu 18.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-46727 | |
| Ubuntu 16.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-46727 | |
| Ubuntu 14.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-46727 | |
| Debian 14 | ruby-rack | Fixed | 3.1.16-0.1 | DEBIAN-CVE-2025-46727 |
| Debian 13 | ruby-rack | Fixed | 3.1.16-0.1 | DEBIAN-CVE-2025-46727 |
| Debian 12 | ruby-rack | Fixed | 2.2.20-0+deb12u1 | DEBIAN-CVE-2025-46727 |
| Red Hat Enterprise Linux 10 | cockpit-ha-cluster | Fixed | 0:0.12.0-3.el10_0.2 | RHSA-2025:8319 |
| Red Hat Enterprise Linux 10 | pcs | Fixed | 0:0.12.0-3.el10_0.2 | RHSA-2025:8319 |
| Red Hat Enterprise Linux 10 | pcs-snmp | Fixed | 0:0.12.0-3.el10_0.2 | RHSA-2025:8319 |
| Red Hat Enterprise Linux 9 | pcs | Fixed | 0:0.11.9-2.el9_6.1 | RHSA-2025:8256 |
| Red Hat Enterprise Linux 9 | pcs-snmp | Fixed | 0:0.11.9-2.el9_6.1 | RHSA-2025:8256 |
| Red Hat Enterprise Linux 8 | pcs | Fixed | 0:0.10.18-2.el8_10.5 | RHSA-2025:8254 |
| Red Hat Enterprise Linux 8 | pcs-snmp | Fixed | 0:0.10.18-2.el8_10.5 | RHSA-2025:8254 |
| Red Hat Enterprise Linux 7 | pcs | Fixed | 0:0.9.169-3.el7_9.4 | RHSA-2025:8322 |
| Red Hat Enterprise Linux 7 | pcs-snmp | Fixed | 0:0.9.169-3.el7_9.4 | RHSA-2025:8322 |
| AlmaLinux 8 | pcs | Fixed | 0.10.18-2.el8_10.5.alma.1 | ALSA-2025:8254 |
| AlmaLinux 8 | pcs-snmp | Fixed | 0.10.18-2.el8_10.5.alma.1 | ALSA-2025:8254 |
| Rocky Linux 9 | pcs | Fixed | 0:0.11.9-2.el9_6.1 | RLSA-2025:8256 |
| Rocky Linux 8 | pcs | Fixed | 0:0.10.18-2.el8_10.5 | RLSA-2025:8254 |
| RubyGems library | rack | Fixed | 3.1.14 | GHSA-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.
- rack: affected: < 2.2.14, >= 3.0, < 3.0.16, >= 3.1, < 3.1.14
References
- https://github.com/rack/rack/security/advisories/GHSA-gjh7-p2fx-99vx
- https://github.com/rack/rack/commit/2bb5263b464b65ba4b648996a579dbd180d2b712
- https://github.com/rack/rack/commit/3f5a4249118d09d199fe480466c8c6717e43b6e3
- https://github.com/rack/rack/commit/cd6b70a1f2a1016b73dc906f924869f4902c2d74
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.