Loading advisory.
Loading advisory.
Rack's multipart header parsing allows Denial of Service via escape-heavy quoted parameters
Rack::Multipart::Parser#handle_mime_head parses quoted multipart parameters such as Content-Disposition: form-data; name="..." using repeated String#index searches combined with String#slice! prefix deletion. For escape-heavy quoted values, this causes super-linear processing.
Published 2026-04-02 17:07 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| rack | RubyGems | >= 3.0.0.beta1, < 3.1.21 >= 3.2.0, < 3.2.6 versions 3.0.0, 3.0.0.beta1, 3.0.0.rc1, 3.0.1, 3.0.10, 3.0.11, 3.0.12, 3.0.13, 3.0.14, 3.0.15, 3.0.16, 3.0.17, 3.0.18, 3.0.2, 3.0.3, 3.0.4, 3.0.4.1, 3.0.4.2, 3.0.5, 3.0.6 and 32 more | 3.1.21, 3.2.6 | gem install rack -v 3.1.21gem install rack -v 3.2.6 |
Rack::Multipart::Parser#handle_mime_head parses quoted multipart parameters such as Content-Disposition: form-data; name="..." using repeated String#index searches combined with String#slice! prefix deletion. For escape-heavy quoted values, this causes super-linear processing.
An unauthenticated attacker can send a crafted multipart/form-data request containing many parts with long backslash-escaped parameter values to trigger excessive CPU usage during multipart parsing.
This results in a denial of service condition in Rack applications that accept multipart form data.
Rack::Multipart::Parser#handle_mime_head parses quoted parameter values by repeatedly:
Searching for the next quote or backslash,
Copying the preceding substring into a new buffer, and
Removing the processed prefix from the original string with slice!.
An attacker can exploit this by sending a multipart request with many parts whose name parameters contain long escape-heavy values such as:
name="a\\a\\a\\a\\a\\..."Under default Rack limits, a request can contain up to 4095 parts. If many of those parts use long quoted values with dense escape characters, the parser performs disproportionately expensive CPU work while remaining within normal request size and part-count limits.
Any Rack application that accepts multipart/form-data requests may be affected, including file upload endpoints and standard HTML form handlers.
An unauthenticated attacker can send crafted multipart requests that consume excessive CPU time during request parsing. Repeated requests can tie up application workers, reduce throughput, and degrade or deny service availability.
Update to a patched version of Rack that parses quoted multipart parameters without repeated rescanning and destructive prefix deletion.
Apply request throttling or rate limiting to multipart upload endpoints.
Where operationally feasible, restrict or isolate multipart parsing on untrusted high-volume endpoints.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.008 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.007 | 0.005 | v2026.06.15 |
| 2026-11-30 | 0.008 | 0.007 | v2026.06.15 |