CVE-2026-142591 — rack
One of 4 rack vulnerabilities published together by NVD: our article covers all of them.
RubyWebCloud & containersVulnerabilitiesResearch article
Rack Vulnerability Allows Memory Exhaustion in Ruby Web Applications
| CVE | CVE-2026-142591 |
|---|---|
| Vendor and product | rack |
| Published | December 04, 2026 00:25 UTC |
| Research cut-off | December 04, 2026 00:10 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-12-03); CISA KEV catalog; GitHub advisory (2026-12-03); FIRST EPSS (2026-12-03) |
Executive summary
CVE-2026-142591 impacts Rack, a Ruby web server interface, due to uncontrolled resource consumption in query parsing [1]. The CVSS 3.1 score is 5.3 MEDIUM, scored by security-advisories@github.com [1]. Versions before 2.2.26, 3.1.24, and 3.2.9 are at risk [3]. The reviewed sources do not confirm exploitation [2]. The primary recommendation is to update to the patched versions [3].
Key points
- CVE-2026-142591 affects Rack versions before 2.2.26, 3.1.24, and 3.2.9 due to uncontrolled resource consumption [3].
- The CVSS 3.1 score is 5.3 MEDIUM, scored by security-advisories@github.com [1].
- The reviewed sources do not confirm exploitation of this vulnerability [2].
- The primary recommendation is to update to the patched versions of Rack [3].
- The vulnerability can cause memory exhaustion, and simultaneous requests may use up the memory of a process or container [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-142591 | Rack team | Rack | CWE-400 | 5.3 MEDIUM, scored by security-advisories@github.com [1] | 2026-12-02T22:18:36 | 2026-12-03T17:18:04 | Awaiting Analysis |
Vulnerability description
Rack's query parser employs regular expressions to process query strings and form-urlencoded data, which can lead to excessive memory use when handling long sequences of spaces or bracket characters [1]. This allows an unauthenticated attacker to trigger memory exhaustion with a single request, which could degrade system performance [1].
Attack surface and exploitation prerequisites
The vulnerability does not require user interaction or elevated privileges and is accessible via the network [1]. The CVSS vector indicates the attack can be initiated without prior authentication [1].
Impact analysis
The CVSS vector shows no impact on confidentiality or integrity but a low impact on availability [1]. The vulnerability can cause memory exhaustion, and simultaneous requests may use up the memory of a process or container [1].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| < 2.2.26 | 2.2.26 [3] |
| >= 3.0.0, < 3.1.24 | 3.1.24 [3] |
| >= 3.2.0, < 3.2.9 | 3.2.9 [3] |
Exploitation and threat intelligence status
CVE-2026-142591 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-12-04 [2]. The EPSS score estimates a 0.61% probability of exploitation activity in the next 30 days [4].
Detection and exposure assessment
To check if an application is affected, verify if it uses Rack versions less than 2.2.26, 3.1.24, or 3.2.9 [3]. No detection methods are provided in the reviewed sources [1].
Remediation
Upgrade to Rack versions 2.2.26, 3.1.24, or 3.2.9 to address this vulnerability [3]. No additional mitigation measures are mentioned in the reviewed sources [1].
Remediation checklist
- Upgrade Rack to version 2.2.26, 3.1.24, or 3.2.9 to resolve the vulnerability [3].
- Review all installed Rack versions to ensure they are not in the vulnerable range [3].
- Monitoring system memory usage may help identify potential exploitation attempts; the record does not describe detection methods.
- Network monitoring tools may help detect unusual traffic patterns; the record does not describe detection methods.
Evidence gaps
- The sources do not describe the affected component's internal workings.
- The sources do not mention a workaround.
- The sources do not describe a scenario or attack lifecycle.
- The sources do not provide indicators of compromise.
- The sources do not list a fixed version for all affected product variants.
References
- CVE-2026-142591 record. NIST National Vulnerability Database (NVD), 2026-12-03. https://nvd.nist.gov/vuln/detail/CVE-2026-142591. Accessed 2026-12-04.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-04. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-04.
- GHSA-f7cc-57h7-qrcg. GitHub Security Advisory Database, 2026-12-03. https://github.com/advisories/GHSA-f7cc-57h7-qrcg. Accessed 2026-12-04.
- EPSS score for CVE-2026-142591. FIRST, 2026-12-03. https://api.first.org/data/v1/epss?cve=CVE-2026-142591. Accessed 2026-12-04.
Summary
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::QueryParser uses the quantified DEFAULT_SEP and COMMON_SEP regular expressions when splitting query strings and application/x-www-form-urlencoded bodies, while params_hash_has_key? and the Rack 2.2 normalize_params path use quantified expressions for bracketed parameter names. Long runs of spaces after an ampersand, or long runs of bracket characters in a parameter name, cause Ruby's regular expression engine to allocate approximately 48 bytes of backtracking state per input character. RACK_QUERY_PARSER_BYTESIZE_LIMIT bounds the request size but not this amplification, and RACK_QUERY_PARSER_PARAMS_LIMIT does not prevent it because very few parameters are required. An unauthenticated attacker can cause substantial transient memory allocation with one request, and concurrent requests can exhaust process or container memory. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
Severity breakdown
Medium · 5.3
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- low on availability, none on confidentiality and integrity
Weakness
- CWE-400: Uncontrolled Resource Consumption
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| rack (RubyGems) | < 2.2.26 | 2.2.26 |
| ≥ 3.0, < 3.1.24 | 3.1.24 | |
| ≥ 3.2, < 3.2.9 | 3.2.9 | |
| rack | < 2.2.26, >= 3.0.0, < 3.1.24, >= 3.2.0, < 3.2.9 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/rack/rack/commit/59fae908d13587922bb29a89c161441d4de0cab6
- github.com/rack/rack/commit/bc0ad07de8603e545fb07936c8d28b9e7ec29804
- github.com/rack/rack/commit/d895d94b88a3233eb0f2e59d3ddb9fc6a0b630ef
- github.com/rack/rack/releases/tag/v2.2.26
- github.com/rack/rack/releases/tag/v3.1.24
- github.com/rack/rack/releases/tag/v3.2.9
Other references
Affected
- rack
Frequently asked questions
What is CVE-2026-142591?
CVE-2026-142591 impacts Rack, a Ruby web server interface, due to uncontrolled resource consumption in query parsing. The CVSS 3.1 score is 5.3 MEDIUM, scored by security-advisories@github.com. Versions before 2.2.26, 3.1.24, and 3.2.9 are at risk. The reviewed sources do not confirm exploitation. The primary recommendation is to update to the patched versions. Weakness type: Uncontrolled Resource Consumption (CWE-400).
How severe is CVE-2026-142591?
CVE-2026-142591 has a CVSS 3.1 base score of 5.3 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-142591 being exploited?
Not as far as is known: CVE-2026-142591 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.6% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-142591?
rack (RubyGems) < 2.2.26 (fixed in 2.2.26); rack (RubyGems) ≥ 3.0, < 3.1.24 (fixed in 3.1.24); rack (RubyGems) ≥ 3.2, < 3.2.9 (fixed in 3.2.9); rack < 2.2.26, >= 3.0.0, < 3.1.24, >= 3.2.0, < 3.2.9.
How do I fix CVE-2026-142591?
Upgrade Rack to version 2.2.26, 3.1.24, or 3.2.9 to resolve the vulnerability. Review all installed Rack versions to ensure they are not in the vulnerable range. Monitoring system memory usage may help identify potential exploitation attempts; the record does not describe detection methods.
Timeline & sources
References
Related vulnerabilities & news
- msgpack-ruby JRuby decoder: header-declared sizes drive uncapped allocation and memory exhaustion (CVE-2026-126366)
- Tenable: Vulnerability Hype Doesn't Equal Real-World Exploit Risk
- CVE-2026-142592 — rack
- Researcher Says Rails CSRF Flaw CVE-2020-8166 Remains Incompletely Fixed
- Ubuntu Issues Fix for TZInfo Path Traversal Flaw in Ruby Timezone Library