mailcatcher · Rack: Multipart parser searches the load path for every unknown part `charset`, allowing denial of service via CPU
Affects mailcatcherSource GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 3.1.24 : patch mailcatcher soon.
Data as of 4 Dec 2026, 18:45 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.1.24, 3.2.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 3.1.24; rack to 3.2.9.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewmailcatcherpkg:brew/mailcatcherOther threats | Affected
| Fixed in– |
RubyGemsrackpkg:gem/rackOther threats | Affected
| Fixed in
|
RubyGemsrackpkg:gem/rackOther threats | Affected
| Fixed in
|
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 Encoding.find is only called for known encoding names, mapping unknown charset values directly to binary without load path searches. Additionally, configure reverse proxies to limit multipart request sizes and reject requests with many repeated charset parameters in part headers to reduce attack surface.
Description
Rack versions 3.0, 3.1, and 3.2 contain a denial of service vulnerability in the multipart parser. The parser calls Ruby's Encoding.find for every charset parameter in multipart Content-Type headers, triggering expensive load path searches for unknown encodings. An attacker can exploit this by sending multipart requests with many unknown charset parameters, causing high CPU usage and significant request processing delays. Rack 2.2 is not affected as it does not rescue the error and aborts early. This affects applications using Rack to parse multipart bodies, including default Rails setups, allowing unauthenticated attackers to exhaust worker threads with relatively small requests.
References
- github.com/rack/rack/security/advisories/GHSA-58mf-c3jj-277p (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-142592 (opens in a new tab)
- github.com/rack/rack/commit/7c16c669fe2040ac395cf05a242f80527ddab16b (opens in a new tab)
- github.com/rack/rack/commit/8ae2ea868a13eec2cfa7065a1ea8b527c567fad9 (opens in a new tab)
- github.com/rack/rack (opens in a new tab)
- github.com/rack/rack/releases/tag/v3.1.24 (opens in a new tab)
- github.com/rack/rack/releases/tag/v3.2.9 (opens in a new tab)