cve.bz

CVE-2025-46727 rack rack: Uncontrolled Resource Consumption

7.5 highEPSS 1.2%Fix available

High (7.5) in rack rack. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in rack 2.2.14, 3.0.16, 3.1.14.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-46727 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-46727?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-46727?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-46727 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rack:rackbefore 2.2.14
rack:rackfrom 3.0.0 before 3.0.16
rack:rackfrom 3.1.0 before 3.1.14

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gjh7-p2fx-99vxRubyGemsrack<2.2.142.2.14
GHSA-gjh7-p2fx-99vxRubyGemsrack>=3.0 <3.0.163.0.16
GHSA-gjh7-p2fx-99vxRubyGemsrack>=3.1 <3.1.143.1.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby-rack2.1.4-3+deb11u4DLA-4357-1
Debian12ruby-rack2.2.20-0+deb12u1DEBIAN-CVE-2025-46727
Debian13, 14ruby-rack3.1.16-0.1DEBIAN-CVE-2025-46727
Ubuntu22.04:LTSruby-rack2.1.4-5ubuntu1.2UBUNTU-CVE-2025-46727
Ubuntu24.04:LTSruby-rack2.2.7-1ubuntu0.3UBUNTU-CVE-2025-46727 USN-7507-1
Ubuntu25.10ruby-rack3.1.16-0.1UBUNTU-CVE-2025-46727
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSruby-rackno fix listedUBUNTU-CVE-2025-46727 USN-7507-1
UbuntuPro:20.04:LTSruby-rack2.0.7-2ubuntu0.1+esm7UBUNTU-CVE-2025-46727 USN-7507-1
UbuntuPro:22.04:LTSruby-rack2.1.4-5ubuntu1.1+esm2UBUNTU-CVE-2025-46727 USN-7507-1
Red Hatenterprise_linux:7::serverpcs, pcs-snmp, pcs-debuginfo0:0.9.169-3.el7_9.4RHSA-2025:8322
Red Hatenterprise_linux:8::highavailability, enterprise_linux:8::resilientstoragepcs, pcs-snmp0:0.10.18-2.el8_10.5RHSA-2025:8254
Red Hatenterprise_linux:9::highavailability, enterprise_linux:9::resilientstoragepcs, pcs-snmp0:0.11.9-2.el9_6.1RHSA-2025:8256
Red Hatenterprise_linux:10.0pcs, pcs-snmp, cockpit-ha-cluster0:0.12.0-3.el10_0.2RHSA-2025:8319
Red Hatrhel_aus:8.4::highavailability, rhel_e4s:8.4::highavailability, rhel_tus:8.4::highavailabilitypcs, pcs-snmp0:0.10.8-1.el8_4.7RHSA-2025:8323
Red Hatrhel_e4s:8.6::highavailability, rhel_tus:8.6::highavailabilitypcs, pcs-snmp0:0.10.12-6.el8_6.8RHSA-2025:8290
Red Hatrhel_e4s:9.0::highavailability, rhel_e4s:9.0::resilientstoragepcs, pcs-snmp0:0.11.1-10.el9_0.8RHSA-2025:8291
Red Hatrhel_eus:8.8::highavailability, rhel_eus:8.8::resilientstoragepcs, pcs-snmp0:0.10.15-4.el8_8.6RHSA-2025:8279
Red Hatrhel_eus:9.2::highavailability, rhel_eus:9.2::resilientstoragepcs, pcs-snmp0:0.11.4-7.el9_2.5RHSA-2025:8289
Red Hatrhel_eus:9.4::highavailability, rhel_eus:9.4::resilientstoragepcs, pcs-snmp0:0.11.7-2.el9_4.4RHSA-2025:8288
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8cjson, cjson-debuginfo, cjson-debugsource0:1.7.18-1.el8satRHSA-2025:9838
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-sqlparse, python3.11-sqlparse0:0.5.0-1.el8pcRHSA-2025:9838
4 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Module for Public Cloud 15 SP3 and 2 morermt-server2.23-150300.3.54.1SUSE-SU-2025:02429-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Availability Extension 15 SP5 and 1 morerubygem-rack2.0.8-150000.3.31.1SUSE-SU-2025:01586-1
SUSELinux Enterprise High Availability Extension 15 SP7rubygem-rack2.0.8-150000.3.31.1SUSE-SU-2025:01586-2
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Public Cloud 15 SP4 and 4 morermt-server2.23-150400.3.42.1SUSE-SU-2025:02329-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Module for Public Cloud 15 SP5 and 4 morermt-server2.23-150500.3.34.2SUSE-SU-2025:02564-1
SUSELinux Enterprise Module for Public Cloud 15 SP7, Linux Enterprise Module for Server Applications 15 SP7rmt-server2.23-150700.3.6.1SUSE-SU-2025:02330-1
openSUSELeap 15.6rmt-server2.23-150500.3.34.2SUSE-SU-2025:02564-1
openSUSELeap 15.6rubygem-rack2.0.8-150000.3.31.1SUSE-SU-2025:01586-1
openSUSETumbleweedrubygem-rack-2.22.2.14-1.1openSUSE-SU-2025:15067-1
openSUSETumbleweedrubygem-rack-2.22.2.22-1.1openSUSE-SU-2026:10286-1
AlmaLinux8pcs, pcs-snmp0.10.18-2.el8_10.5.alma.1ALSA-2025:8254
Rocky Linux8pcs0:0.10.18-2.el8_10.5RLSA-2025:8254
Rocky Linux9pcs0:0.11.9-2.el9_6.1RLSA-2025:8256

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an IMPORTANT severity because the vulnerabilty was found in the Rack::QueryParser component which arises because 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, when an attacker sends requests with an extremely large number of parameters, Rack::QueryParser consumes excessive memory and CPU during parsing, leading to memory exhaustion, this results in a denial of service, causing the Rack server to crash and leading to full service disruption.

Red Hat Satellite 6.15 includes an affected version of rubygem-rack; however, since it does not utilize Rack::QueryParser, it is not actually vulnerable to the flaw, lowering product-specific impact. The issue has already been addressed in Red Hat Satellite versions 6.16 and 6.17, and updates for other supported versions may follow based on the product lifecycle policy.

Red Hat's mitigation

This issue can be mitigated without upgrading by preventing oversized requests from reaching Rack. Deploy a reverse proxy (such as Nginx) in front of the application to limit request sizes and reject oversized query strings or bodies, use Rack middleware to enforce a maximum query string size or parameter count, or limit request body sizes and query string lengths at the web server or CDN level. These measures prevent a single request containing an extremely large number of parameters from consuming excessive memory or CPU during query parsing. For a permanent fix, update to a version of Rack that limits the number of parsed parameters (upstream Rack versions 2.2.14, 3.0.16, and 3.1.14 address this issue).

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10pcs-0:0.12.0-3.el10_0.2Fixed 2025-05-29RHSA-2025:8319
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpcs-0:0.9.169-3.el7_9.4Fixed 2025-05-29RHSA-2025:8322
Red Hat Enterprise Linux 8pcs-0:0.10.18-2.el8_10.5Fixed 2025-05-28RHSA-2025:8254
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpcs-0:0.10.8-1.el8_4.7Fixed 2025-05-29RHSA-2025:8323
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicepcs-0:0.10.8-1.el8_4.7Fixed 2025-05-29RHSA-2025:8323
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionspcs-0:0.10.8-1.el8_4.7Fixed 2025-05-29RHSA-2025:8323
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepcs-0:0.10.12-6.el8_6.8Fixed 2025-05-29RHSA-2025:8290
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionspcs-0:0.10.12-6.el8_6.8Fixed 2025-05-29RHSA-2025:8290
Red Hat Enterprise Linux 8.8 Extended Update Supportpcs-0:0.10.15-4.el8_8.6Fixed 2025-05-28RHSA-2025:8279
Red Hat Enterprise Linux 9pcs-0:0.11.9-2.el9_6.1Fixed 2025-05-28RHSA-2025:8256
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionspcs-0:0.11.1-10.el9_0.8Fixed 2025-05-29RHSA-2025:8291
Red Hat Enterprise Linux 9.2 Extended Update Supportpcs-0:0.11.4-7.el9_2.5Fixed 2025-05-29RHSA-2025:8289
Red Hat Enterprise Linux 9.4 Extended Update Supportpcs-0:0.11.7-2.el9_4.4Fixed 2025-05-29RHSA-2025:8288
Red Hat Satellite 6.15 for RHEL 8rubygem-rack-0:2.2.14-1.el8satFixed 2025-06-26RHSA-2025:9838
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel8Affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel9Affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Will not fix
Red Hat Satellite 6satellite-capsule:el8/rubygem-rackAffected
Red Hat Satellite 6satellite:el8/rubygem-rackAffected
3 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-46727.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON