Skip to main content
CVE-2026-142591VulnerabilityPublished

Rack: `Rack::QueryParser` separator pattern allocates ~48 bytes per space after `&`, allowing denial of service via

Affects rackSource GCVE Database

0
Compare
Authoritative record:CVE-2026-142591· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium : upgrade to 2.2.26 when convenient.

Data as of 4 Dec 2026, 00:45 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.15.3
Patch
Available – fixed in 2.2.26, 3.1.24, 3.2.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade rack to 2.2.26; rack to 3.1.24; rack to 3.2.9.

Affected software

ProductAffectedFixed in
RubyGemsrackAffected
  • <2.2.26
Fixed in
  • 2.2.26
RubyGemsrackAffected
  • >=3.0 <3.1.24
Fixed in
  • 3.1.24
RubyGemsrackAffected
  • >=3.2 <3.2.9
Fixed in
  • 3.2.9

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Update Rack to version 2.2.26, 3.1.24, or 3.2.9 or later, where the separator matching is changed to plain string operations and parameter splitting avoids quantified regex patterns. Additionally, reduce the `RACK_QUERY_PARSER_BYTESIZE_LIMIT` environment variable to the maximum expected form body size to limit memory allocation per request. At reverse proxies, configure rules to reject requests containing unencoded space characters in query strings or urlencoded bodies to prevent exploitation.

Description

A vulnerability in Rack's QueryParser causes excessive memory allocation when parsing query strings or form bodies containing unencoded spaces or bracket characters. This leads to denial of service via memory exhaustion. The issue affects all supported versions prior to 2.2.26, 3.1.24, and 3.2.9. An unauthenticated attacker can exploit this by sending specially crafted requests with long runs of spaces or brackets, causing the process to allocate roughly 48 times the size of the input in memory. The vulnerability is mitigated by updating to patched versions and by limiting the size of parsed request bodies.

References

Community reviews

Loading reviews…