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
- Upgrade rack to version 2.2.25, 3.1.23, or 3.2.8.
- Configure reverse proxies to reject requests that contain more than one 'boundary' parameter in the 'Content-Type' header.
How to check your project
- Inspect the Gemfile.lock file for 'rack' versions within the ranges 0-2.2.24, 3.0.0-3.1.22, or 3.2.0-3.2.7.
- Run 'bundle info rack' in the project directory to identify the currently installed version.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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 vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
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
References
- WEB https://github.com/rack/rack/security/advisories/GHSA-p8x9-v4hv-2w4g
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-125108
- WEB https://github.com/rack/rack/commit/19a1a19cb4da97d61c8d5effeb2e927c44370ae9
- WEB https://github.com/rack/rack/commit/a29512324265790a5536b830490075d0d79323be
- WEB https://github.com/rack/rack/commit/d5e928b803da30b8e40171dbd4be39bed7daa6fa
- PACKAGE https://github.com/rack/rack
- WEB https://github.com/rack/rack/releases/tag/v2.2.25
- WEB https://github.com/rack/rack/releases/tag/v3.1.23
- WEB https://github.com/rack/rack/releases/tag/v3.2.8
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/GHSA-p8x9-v4hv-2w4g.yml
Source records: GHSA-p8x9-v4hv-2w4g (OSV.dev) · EPSS by FIRST, 2026-11-26.