RubyGems
CVE-2026-125108
Rack: Multipart boundary ambiguity guard in Rack::Multipart::Parser can be bypassed with a quoted boundary value, allowing WAF bypass
- Severity
- Low 3.7
- Published
- 10 Nov 2026
- Last changed
- 10 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.2.25, 3.1.23, 3.2.8
- Exploit chance
- 0.3% in the next 30 daysHigher than 24% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- CWE-436
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N- Also known as
- GHSA-p8x9-v4hv-2w4g
- Sources
- OSV.dev and GitHub
Description
The guard added for CVE-2026-26961 (GHSA-vgpv-f759-9wx3), which rejects multipart requests with more than one boundary parameter, only inspects the part of the Content-Type header after the boundary it extracts. A Content-Type whose first boundary parameter is empty or begins with a quote, semicolon, or comma is skipped by the extraction pattern, so a second boundary parameter is accepted silently and Rack parses the body with a boundary that a conforming parser would not derive from the header.
Rack::Multipart::Parser.parse_boundary extracts the boundary with a regular expression that uses a lazy prefix and a value class excluding ", ;, and ,. For a header such as multipart/form-data; boundary=";boundary=AaB03x" or multipart/form-data; boundary=; boundary=AaB03x, the pattern skips the first boundary= and anchors on the second, and the subsequent check for another boundary= in the remaining text finds nothing. Rack then uses AaB03x.
Workarounds
- Update to a patched version of Rack.
- Reject requests whose Content-Type contains more than one boundary parameter at the reverse proxy.
Affected software
| Software | Affected versions |
|---|---|
rackRubyGems · osv:RubyGems:rack |
|
About rack
- Total downloads (RubyGems)
- 1,398,166,843RubyGems, 24 Nov 2026
Vulnerabilities in rack
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-125111Rack: Multipart parsing allows DoS via unbounded scan buffer growthHigh 7.5 10 Nov 2026
- CVE-2026-125109Rack: Rack::Request#host_with_port (and #base_url / #url) return the raw invalid Host header — incomplete fix of CVE-2026-34835Medium 4.8 10 Nov 2026
- CVE-2026-125110Rack: Rack::Static header_rules bypass via dot-segment normalization mismatchMedium 5.3 10 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-125108
- GitHub Advisory Database https://github.com/advisories/GHSA-p8x9-v4hv-2w4g