Rack: `Rack::Multipart` extracts the boundary by substring match rather than parameter parsing, allowing parser differentials and WAF bypass.
- CVE-2026-142594
- GHSA-r243-pfwh-7rpx
- EUVD-2026-141929
Description
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser.parse_boundary locates boundary= as a substring anywhere in a Content-Type header instead of parsing named parameters consistently with Rack::MediaType.params, truncates quoted boundary values at delimiters, preserves surrounding whitespace, and does not correctly process quoted-pair escapes. A conforming intermediary can therefore find no boundary or a different boundary while Rack parses attacker-controlled multipart parts, allowing form fields or uploads to bypass web application firewall inspection. Exploitation requires an intermediary that inspects multipart bodies using a conforming parser, and Rack itself grants no capability beyond a well-formed request carrying the same body. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
Text from the CVE.org record.
Recommendation
rack
- If you run 3.2.xupdate to 3.2.9 or laterPatch update: breaking changes are unlikelyrack 3.2.9 on its registry (opens in a new tab)
- If you run a version from 3.0.0 to before 3.1.24update to 3.1.24 or laterMinor version change: check the release notesrack 3.1.24 on its registry (opens in a new tab)
- If you run a version before 2.2.26update to 2.2.26 or laterrack 2.2.26 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
rack
Affected versions Fixed in < 2.2.26 none stated >= 3.0.0, < 3.1.24 none stated >= 3.2.0, < 3.2.9 none stated rackRubyGems
Affected versions Fixed in from 3.2.0 to before 3.2.9 3.2.9 from 3.0.0 to before 3.1.24 3.1.24 before 2.2.26 2.2.26
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.