CVE-2026-142590
## Summary The fix for CVE-2026-26962 was incomplete. `Rack::Multipart::Parser` can still place a raw carriage return or line feed from a multipart part header into a parameter name in the application's params hash: * In Rack 3.1.16+ and 3.2, the parser unfolds folded (obs-fold) `Content-Type` and `Content-Disposition` values but not `Content-ID`. When a part has no usable `Content-Disposition` header, the part's name is taken from `Content-ID`, so a folded `Content-ID` value yields a parameter name containing CRLF. * In Rack 2.2, the quoted-string pattern used to extract header parameter values matches across line breaks, so a quoted `name` or `filename` containing CRLF is accepted as is, and a bare CR is accepted in a `Content-Type` value. In both cases this is the same weakness as CVE-2026-26962, reached through a header or pattern the earlier fix did not cover. ## Details ### Rack 3.1.16 and later, Rack 3.2 The fix for CVE-2026-26962 added an `OBS_UNFOLD` substitution and applied it to the `Content-Type` and `Content-Disposition` values. The fallback branch that derives the part name from `Content-ID` was left unchanged: ```ruby content_type = head[MULTIPART_CONTENT_TYPE, 1] content_type.gsub!(OBS_UNFOLD, '\1') if content_type if (disposition = head[MULTIPART_CONTENT_DISPOSITION, 1]) && disposition.bytesize <= CONTENT_DISPOSITION_MAX_BYTES disposition.gsub!(OBS_UNFOLD, '\1') # ... else name = head[MULTIPART_CONTENT_ID, 1] # not unfolded end ``` A part containing `Content-ID: injected-id\r\n value` and no `Content-Disposition` produces the parameter name `"injected-id\r\n value"`. The branch is also reached when a `Content-Disposition` header is present but longer than `CONTENT_DISPOSITION_MAX_BYTES` (1536 bytes), so a part can carry a `Content-Disposition` and still have its name taken from a folded `Content-ID`. Any `multipart/*` content type, including `multipart/form-data`, reaches this code. `Content-Disposition` parameter names and values a
Properties
- Severity
- medium
- Summary
- Rack: `Rack::Multipart::Parser` preserves CRLF from multipart part headers in parsed parameter names (incomplete fix for CVE-2026-26962)
- Nvd fetched at
- 2026-12-04T15:00:48.841578+00:00
- Epss score
- 0.00477
- Cvss severity
- MEDIUM
- Cvss score
- 4.8
- Retrieved at
- 2026-12-04T15:02:58+00:00
- Ghsa published
- 2026-12-02T23:38:48Z
- Source url
- https://github.com/advisories/GHSA-frgv-948x-h96g
- Ghsa updated
- 2026-12-02T23:38:49Z
- Ghsa id
- GHSA-frgv-948x-h96g
- Last source
- FIRST EPSS
- Score
- 4.8
- Cvss version
- 3.1
- Cve id
- CVE-2026-142590
- Cvss vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- First seen by Signal
- 2026-12-02T22:45:38+00:00
- Name
- CVE-2026-142590
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph