CVE-2026-26961 Details
Description
Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Multipart::Parser extracts the boundary parameter from multipart/form-data using a greedy regular expression. When a Content-Type header contains multiple boundary parameters, Rack selects the last one rather than the first. In deployments where an upstream proxy, WAF, or intermediary interprets the first boundary parameter, this mismatch can allow an attacker to smuggle multipart content past upstream inspection and have Rack parse a different body structure than the intermediary validated. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.
A vulnerability exists in Rack's handling of multipart/form-data uploads, specifically in versions prior to 2.2.23, 3.1.21, and 3.2.6. The issue arises because Rack::Multipart::Parser uses a greedy regular expression to extract the boundary parameter from the Content-Type header. When multiple boundary parameters are present, Rack incorrectly selects the last one instead of the first. This can lead to a mismatch where an upstream proxy or web application firewall (WAF) interprets the first boundary, allowing an attacker to bypass upstream content inspection and manipulate how Rack parses the request body. The vulnerability is most concerning in deployments where security decisions are made before the request reaches Rack.
Users are advised to update Rack to version 2.2.23, 3.1.21, or 3.2.6, all of which address the vulnerability by properly handling ambiguous multipart Content-Type headers. In addition, requests with multiple boundary parameters can be rejected, or multipart metadata can be normalized at the trusted edge before reaching Rack. It is also recommended to avoid relying on upstream inspection of malformed multipart requests unless parameter handling is consistent across all components.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/rack/rack/security/advisories/GHSA-vgpv-f759-9wx3 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-436 | Interpretation Conflict | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| rack rack | < 2.2.23 >= 3.0.0, < 3.1.21 >= 3.2.0, < 3.2.6 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 16, 2026 | Initial Analysis | [email protected] |
| Apr 2, 2026 | New CVE Received | [email protected] |