{"id":"CVE-2026-142594","summary":"Rack: `Rack::Multipart` extracts the boundary by substring match rather than parameter parsing, allowing parser differentials and WAF bypass.","details":"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.","aliases":["GHSA-r243-pfwh-7rpx"],"modified":"2026-12-02T23:00:10.172748993Z","published":"2026-12-02T21:42:42.507Z","database_specific":{"cwe_ids":["CWE-436"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142594.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142594.json"},{"type":"FIX","url":"https://github.com/rack/rack/commit/6cce362d027f437362eb1d2ae330e7e880e6a01d"},{"type":"FIX","url":"https://github.com/rack/rack/commit/c74dbad94cbe91c7fa6e68f89fad22578a6135e0"},{"type":"FIX","url":"https://github.com/rack/rack/commit/e5045fef634b491f0ea25b0e8bbfb946f7cbadd4"},{"type":"WEB","url":"https://github.com/rack/rack/releases/tag/v2.2.26"},{"type":"WEB","url":"https://github.com/rack/rack/releases/tag/v3.1.24"},{"type":"ADVISORY","url":"https://github.com/rack/rack/security/advisories/GHSA-r243-pfwh-7rpx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142594"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rack/rack","events":[{"introduced":"0"},{"fixed":"320778d0cdd17d8791d986626e2d09084d32c84d"},{"introduced":"52901caf09ebcda879512a8605059963a49df55d"},{"fixed":"f1ebc3d8c3eea89908b931db76b131fea9bda52b"},{"introduced":"b68251c03788ff39d4a4b25424df7360426e4afd"},{"fixed":"52941a02842fd956e3c5532147116354a0240149"},{"fixed":"6cce362d027f437362eb1d2ae330e7e880e6a01d"},{"fixed":"c74dbad94cbe91c7fa6e68f89fad22578a6135e0"},{"fixed":"e5045fef634b491f0ea25b0e8bbfb946f7cbadd4"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"2.2.26"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"3.0.0"},{"fixed":"3.1.24"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"3.2.0"},{"fixed":"3.2.9"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"6cce362d027f437362eb1d2ae330e7e880e6a01d"}]},{"range":[{"fixed":"c74dbad94cbe91c7fa6e68f89fad22578a6135e0"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"e5045fef634b491f0ea25b0e8bbfb946f7cbadd4"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"320778d0cdd17d8791d986626e2d09084d32c84d"}],"source":"REFERENCES_TAG","original_tag":"v2.2.26"},{"range":[{"fixed":"f1ebc3d8c3eea89908b931db76b131fea9bda52b"}],"source":"REFERENCES_TAG","original_tag":"v3.1.24"}]}}],"versions":["v2.2.25","v3.1.23","v3.2.8","v2.2.24","v3.1.22","v3.2.7","v2.2.23","v3.2.6","v3.1.21","v3.2.5","v3.1.20","v2.2.22","v3.1.19","v3.2.4","v2.2.21","v3.2.3","v3.1.18","v2.2.20","v2.2.19","v3.1.17","v3.2.2","v3.2.1","v2.2.18","v2.2.17","v3.2.0","v3.1.16","v2.2.16","v3.1.15","v2.2.15","v2.2.14","v3.1.14","v3.1.13","v2.2.13","v3.1.12","v3.1.11","v2.2.12","v3.1.10","v2.2.11","v2.2.10","v3.1.9","v3.1.8","v3.1.7","v2.2.9","v3.1.6","v3.1.5","v3.1.4","v3.1.3","v3.1.2","v3.1.0","v2.2.8","v2.2.7","v2.2.6.2","v2.2.6.1","v2.2.6","v2.2.5","2.2.4","3.0.0","2.2.3","v2.2.2","v2.2.1","2.2.0","2.1.0","2.0.1","2.0.0","2.0.0.rc1","2.0.0.alpha","1.6.0.beta","1.5.1","1.5.0","1.4.1","1.4.0","1.3.0","1.3.0.beta2","1.3.0.beta","1.0","0.3","0.2","0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142594.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}