LOW · CVSS 3.1 3.7 EPSS 0.4% · 24th percentile CWE-436

CVE-2026-125108: Rack: Multipart boundary ambiguity guard in Rack::Multipart::Parser can be bypassed with a quoted boundary value, allowing WAF bypass

Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-p8x9-v4hv-2w4g

Summary

Rack's multipart parser fails to correctly count multiple 'boundary' parameters in the 'Content-Type' header when quoted or malformed values are present. Engineering teams using affected versions of Rack should update to the patched releases to prevent WAF bypass vulnerabilities.

Who is affected

This flaw affects Ruby applications using the Rack library to handle multipart form data. An attacker can exploit this discrepancy to bypass web application firewalls or security proxies that interpret boundary parameters differently than Rack. The vulnerability allows malicious multipart requests to reach the application without proper inspection by intermediary security controls.

Exploitability

The vulnerability has a low CVSS base score of 3.7, indicating limited impact on integrity with no confidentiality or availability concerns. With an EPSS score of 0.002, the probability of exploitation is low, and the issue is not currently listed on the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
RubyGems rack >= 0, < 2.2.25 2.2.25 bundle update rack
RubyGems rack >= 3.0.0, < 3.1.23 3.1.23 bundle update rack
RubyGems rack >= 3.2.0, < 3.2.8 3.2.8 bundle update rack

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityNone

FAQ

What is the primary security risk of this vulnerability?

The primary risk is a WAF bypass, where an attacker crafts a request that a security proxy ignores or inspects differently than the backend application, allowing potentially malicious payloads to bypass security filters.

Does this vulnerability allow for arbitrary code execution?

No, the vulnerability description states that Rack itself grants no capability beyond that of a well-formed request with the same body, meaning the impact is limited to the bypass of external inspection mechanisms.

Is this vulnerability actively being exploited in the wild?

There is no evidence of active exploitation at this time as the vulnerability is not included in the CISA Known Exploited Vulnerabilities catalog.

Original advisory description
## Summary 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. ## Details `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`. RFC 9110 parses the first header as a single parameter whose value is `;boundary=AaB03x`, which is not a legal boundary under RFC 2046, so the only conformant outcome is rejection. Inspecting intermediaries that implement the standard grammar, such as ModSecurity, see a different boundary or no multipart body at all. The fix counts `boundary=` occurrences across the entire header value and rejects the request when there is more than one. ## Impact As with CVE-2026-26961, an attacker can craft a multipart request that a web application firewall or other inspecting proxy in front of a Rack application interprets differently from Rack, so form fields and file uploads reach the application without inspection. Rack itself grants no capability beyond that of a well-formed request with the same body. All supported versions, including 2.2, are affected. ## Mitigation * Update to a patched version of Rack. * Reject requests whose `Content-Type` contains more than one `boundary` parameter at the reverse proxy.

References

Source records: GHSA-p8x9-v4hv-2w4g (OSV.dev) · EPSS by FIRST, 2026-11-26.