Rack: `Rack::Multipart` extracts the boundary by substring match rather than parameter parsing, allowing parser differentials and WAF bypass
CVE-2026-142594
Summary Rack::Multipart::Parser.parseboundary locates the multipart boundary by matching boundary= anywhere in the Content-Type header with a regular expression, rather than parsing the header's parameters. The matched value is also cut at the first ", ;, or , even inside a quoted-string, and surrounding whitespace is kept. Rack therefore derives a boundary from headers in which a conforming parser (RFC 9110 Section 8.3.1, as implemented by Go's mime.ParseMediaType, Python's email package, and WAF engines built on them) finds a different boundary or none at all. An attacker can choose such a header and lay out a body that an inspecting intermediary and Rack read as different sets of parts. Details The boundary is extracted with: ruby MULTIPART = /\Amultipart\/.?#{NOTAFTERTOKENCHAR}boundary(\s)="?([^";,]+)"?/ni This has three consequences: boundary= inside another parameter's value is accepted as the boundary. multipart/form-data; name=" boundary=EVIL" and multipart/form-data; x=boundary=AaB03x both yield a boundary for Rack, while a conforming parser finds no boundary parameter. The duplicate-boundary guard added for CVE-2026-125108 counts one occurrence and does not fire, and the…
Assessment
- CVSS
- 3.7 (v3.1)
- Severity
- Low
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 3 December 2026
- Last updated
- 3 December 2026
- Weakness
- CWE-436
- Assigner
- GitHub_M
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
At the source
References
- https://github.com/rack/rack/security/advisories/GHSA-r243-pfwh-7rpx
- https://github.com/rack/rack/commit/6cce362d027f437362eb1d2ae330e7e880e6a01d
- https://github.com/rack/rack/commit/c74dbad94cbe91c7fa6e68f89fad22578a6135e0
- https://github.com/rack/rack/commit/e5045fef634b491f0ea25b0e8bbfb946f7cbadd4
- https://github.com/rack/rack/releases/tag/v2.2.26
- https://github.com/rack/rack/releases/tag/v3.1.24
- https://github.com/rack/rack/releases/tag/v3.2.9
- https://github.com/advisories/GHSA-r243-pfwh-7rpx
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-142594