CVE Professor
/
All CVEs
CVE-2026-142594

CVE-2026-142594 — Rack — CWE-436

LOW CVSS 3.7 ⚡ EPSS 0.6% GitHub

## Summary `Rack::Multipart::Parser.parse_boundary` locates the multipart boundary by matching `boundary=` anywhere in the `Content-Type` header with a regular expression, rather than parsing the header's parameters. The matched value is also cut at the first `"`, `;`, or `,` even inside a quoted-string, and surrounding whitespace is kept. Rack therefore derives a boundary from headers in which a conforming parser (RFC 9110 Section 8.3.1, as implemented by Go's `mime.ParseMediaType`, Python's `email` package, and WAF engines built on them) finds a different boundary or none at all. An attacker can choose such a header and lay out a body that an inspecting intermediary and Rack read as different sets of parts. ## Details The boundary is extracted with: ```ruby MULTIPART = /\Amultipart\/.*?#{NOT_AFTER_TOKEN_CHAR}boundary(\s*)="?([^";,]+)"?/ni ``` This has three consequences: * `boundary=` inside another parameter's value is accepted as the boundary. `multipart/form-data; name=" boundary=EVIL"` and `multipart/form-data; x=boundary=AaB03x` both yield a boundary for Rack, while a conforming parser finds no `boundary` parameter. The duplicate-boundary guard added for CVE-2026-125108 counts one occurrence and does not fire, and the token-character lookbehind does not help because a space or `=` is not a token character. * A quoted boundary is truncated at `,` or `;`. `multipart/form-data; boundary="AaB03x,1"` yields `AaB03x` for Rack and `AaB03x,1` for a conforming parser. Thi

## Summary `Rack::Multipart::Parser.parse_boundary` locates the multipart boundary by matching `boundary=` anywhere in the `Content-Type` header with a regular expression, rather than parsing the header's parameters. The matched value is also cut at the first `"`, `;`, or `,` even inside a quoted-string, and surrounding whitespace is kept. Rack therefore derives a boundary from headers in which a conforming parser (RFC 9110 Section 8.3.1, as implemented by Go's `mime.ParseMediaType`, Python's `email` package, and WAF engines built on them) finds a different boundary or none at all. An attacker can choose such a header and lay out a body that an inspecting intermediary and Rack read as different sets of parts. ## Details The boundary is extracted with: ```ruby MULTIPART = /\Amultipart\/.*?#{NOT_AFTER_TOKEN_CHAR}boundary(\s*)="?([^";,]+)"?/ni ``` This has three consequences: * `boundary=` inside another parameter's value is accepted as the boundary. `multipart/form-data; name=" boundary=EVIL"` and `multipart/form-data; x=boundary=AaB03x` both yield a boundary for Rack, while a conforming parser finds no `boundary` parameter. The duplicate-boundary guard added for CVE-2026-125108 counts one occurrence and does not fire, and the token-character lookbehind does not help because a space or `=` is not a token character. * A quoted boundary is truncated at `,` or `;`. `multipart/form-data; boundary="AaB03x,1"` yields `AaB03x` for Rack and `AaB03x,1` for a conforming parser. Thi

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity Low I:L
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.6%
30-day probability
In the 49. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-142594
CVSS 3.7/10 · LOW · 02.12.2026
CWE: CWE-436
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ## Summary

Rack::Multipart::Parser.parse_boundary locates the multipart boundary by matching boundary= anywhere in the Content-Type header with a regular expression, rather than parsing the header's parameters. The matched value is also cut at the first ", ;, or , even inside a quoted-string, and surrounding whitespace is kept. Rack therefore derives a boundary from headers in whic…
Affected: rack

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N).

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; limited integrity modification (I:L).

🛡️ REMEDIATION
→ Apply vendor security update for rack.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📌 Low priority — routine update sufficient.

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
3.7 / 10 · CVSS LOW
Weakness Types (CWE)
CWE-436
Affected Products (1)
rack
References & Advisories (4)
Related CVEs
7.4
CVE-2026-145240
### Summary Istio TPROXY mode: mTLS/AuthorizationPolicy bypass via conntrack ESTABLISHED fast path on ephemer
7.1
CVE-2026-144604
PostGIS through 3.7.0 contains an out-of-bounds read vulnerability in RASTER_reclass that allows low-privilege
6.9
CVE-2026-144957
Masterminds html5-php before 2.12.0 contains a denial of service vulnerability that allows remote attackers to
6.9
CVE-2026-144970
APSW through 3.54.1.0 contains an sql injection vulnerability in the shell's _fmt_sql_identifier function that
9.6
CVE-2026-145025
Grav API plugin before 1.1.21 validates the client-supplied admin_base_url or Origin header with PHP parse_url
8.6
CVE-2026-144962
Nginx UI from 2.4.1 before 2.9.2 contains a directive denylist bypass in internal/config/validation.go that al
8.2
CVE-2026-145366
### Summary A URI SAN is a context-specific, primitive GeneralName with tag number 6 (identifier octet `0x86`