Skip to main content
CVE-2026-142591VulnerabilityPublished

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

Affects mailcatcherSource GCVE Database

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

Not known to be exploited · CVSS 5.3 Medium · fixed in 2.2.26 : update mailcatcher when convenient.

Data as of 4 Dec 2026, 18:46 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
EPSS
0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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 4 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
Homebrewmailcatcherpkg:brew/mailcatcherOther threatsAffected
  • >=0.8.1
Fixed in–
RubyGemsrackpkg:gem/rackOther threatsAffected
  • <2.2.26
Fixed in
  • 2.2.26
RubyGemsrackpkg:gem/rackOther threatsAffected
  • 3.0.0 – 3.1.23
  • >=3.0 <3.1.24
47 affected builds
Fixed in
  • 3.1.24
RubyGemsrackpkg:gem/rackOther threatsAffected
  • 3.2.0 – 3.2.8
  • >=3.2 <3.2.9
9 affected builds
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 to a patched version of Rack where the separator is matched as a plain string and parameter names are split without quantified regex patterns. Additionally, lower the RACK_QUERY_PARSER_BYTESIZE_LIMIT to the maximum form body size your application requires to limit memory allocation. At the reverse proxy, configure rejection of requests containing unencoded space characters in query strings or urlencoded bodies to prevent triggering the issue.

Description

Rack's QueryParser uses a regular expression to split query strings and form bodies that causes excessive memory allocation when parsing inputs with many spaces after '&' or long runs of bracket characters in parameter names. This leads to a denial of service via memory exhaustion. The issue affects all supported versions and requires no authentication to exploit. Normal clients do not send unencoded spaces, but crafted requests can trigger high memory use and potentially crash the process. Mitigations include updating to a patched Rack version, lowering the RACK_QUERY_PARSER_BYTESIZE_LIMIT, and rejecting requests with unencoded spaces at a reverse proxy.

References

Community reviews

Loading reviews…