CVE-2026-142590
Rack: `Rack: : Multipart: : Parser` preserves CRLF from multipart part headers in parsed parameter names (incomplete fix for CVE- 2026- 26962)
- Severity
- 4.8MediumNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- 0.48% in 30 daysPercentile42ndEPSS, scored
- Listed fix
2.2.26for rackFrom GitHub Advisories and OSV2 more listed versions, 7 other affected packages
Overview
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser incompletely prevents carriage return and line feed characters from multipart part headers from reaching parsed values. In Rack 3.1.16 and later and Rack 3.2, folded Content-ID values can become parameter names when Content-Disposition is missing or exceeds CONTENT_DISPOSITION_MAX_BYTES because Content-ID is not unfolded. In Rack 2.2, quoted name or filename values and Content-Type values can match across line breaks. Applications that reuse these parameter names or uploaded-file content types in response headers, log lines, or other CRLF-delimited contexts may permit header injection, response splitting, or log forgery, while Rack itself does not write these values to those sinks. Rack 3.0 is affected. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
CVSS 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
Impact
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NExploit chance over time
Affected
Packages 8
| Package | Affected | Fixed |
|---|---|---|
rackRubyGems | before 2.2.26, plus listed versions 0.1.00.2.00.3.00.4.00.9.0 Show 45 more versionsShow less0.9.11.0.01.0.11.1.01.1.11.1.1.pre1.1.21.1.31.1.41.1.51.1.61.2.01.2.11.2.21.2.31.2.41.2.51.2.61.2.71.2.81.3.01.3.0.beta1.3.0.beta21.3.11.3.101.3.21.3.31.3.41.3.51.3.61.3.71.3.81.3.91.4.01.4.11.4.21.4.31.4.41.4.51.4.61.4.71.5.01.5.0.beta.11.5.0.beta.21.5.1 | 2.2.26 |
| 3.1.16 up to 3.1.24, plus listed versions 3.1.173.1.183.1.193.1.203.1.213.1.223.1.23 | 3.1.24 | |
| 3.2.0 up to 3.2.9, plus listed versions 3.2.13.2.23.2.33.2.43.2.53.2.63.2.73.2.8 | 3.2.9 | |
gitlab-rails-18Docker Hardened Images:Alpine:3.23 | 18.11.11-r0 and later, plus listed versions 18.11.11-r118.11.11-r218.11.12-r018.11.12-r118.11.12-r2 Show 24 more versionsShow less18.11.12-r318.11.12-r418.11.14-r018.11.14-r118.11.14-r1018.11.14-r1118.11.14-r1218.11.14-r1318.11.14-r1418.11.14-r1518.11.14-r1618.11.14-r218.11.14-r318.11.14-r418.11.14-r518.11.14-r618.11.14-r718.11.14-r818.11.14-r918.11.15-r018.11.15-r118.11.15-r218.11.15-r318.11.15-r4 | None listed |
gitlab-rails-18Docker Hardened Images:Alpine:3.24 | 18.11.11-r0 and later, plus listed versions 18.11.11-r118.11.11-r218.11.12-r018.11.12-r118.11.12-r2 Show 24 more versionsShow less18.11.12-r318.11.12-r418.11.14-r018.11.14-r118.11.14-r1018.11.14-r1118.11.14-r1218.11.14-r1318.11.14-r1418.11.14-r1518.11.14-r1618.11.14-r218.11.14-r318.11.14-r418.11.14-r518.11.14-r618.11.14-r718.11.14-r818.11.14-r918.11.15-r018.11.15-r118.11.15-r218.11.15-r318.11.15-r4 | None listed |
gitlab-rails-19Docker Hardened Images:Alpine:3.23 | 19.1.8-r0 and later, plus listed versions 19.1.8-r119.4.1-r019.4.1-r119.4.1-r219.4.1-r3 Show 27 more versionsShow less19.4.2-r019.5.3-r019.5.3-r119.5.3-r219.5.3-r319.5.3-r419.5.3-r519.5.3-r619.5.3-r719.5.3-r819.5.4-r019.5.4-r119.5.5-r019.5.5-r119.5.5-r219.5.6-r019.5.6-r119.6.0-r019.6.0-r119.6.1-r019.6.1-r119.6.1-r219.6.2-r019.6.2-r119.6.2-r219.6.2-r319.6.2-r4 | None listed |
gitlab-rails-19Docker Hardened Images:Alpine:3.24 | 19.1.8-r0 and later, plus listed versions 19.1.8-r119.4.1-r019.4.1-r119.4.1-r219.4.1-r3 Show 27 more versionsShow less19.4.2-r019.5.3-r019.5.3-r119.5.3-r219.5.3-r319.5.3-r419.5.3-r519.5.3-r619.5.3-r719.5.3-r819.5.4-r019.5.4-r119.5.5-r019.5.5-r119.5.5-r219.5.6-r019.5.6-r119.6.0-r019.6.0-r119.6.1-r019.6.1-r119.6.1-r219.6.2-r019.6.2-r119.6.2-r219.6.2-r319.6.2-r4 | None listed |
gitlab-exporterDocker Hardened Images:Debian:13 | 16.10.0-1 and later, plus listed versions 16.10.0-1016.10.0-1116.10.0-1216.10.0-1316.10.0-14 Show 45 more versionsShow less16.10.0-1516.10.0-1616.10.0-1716.10.0-1816.10.0-1916.10.0-216.10.0-2016.10.0-2116.10.0-2216.10.0-2316.10.0-2416.10.0-2516.10.0-2616.10.0-2716.10.0-2816.10.0-2916.10.0-316.10.0-3016.10.0-3116.10.0-3216.10.0-3316.10.0-3416.10.0-3516.10.0-3616.10.0-3716.10.0-3816.10.0-3916.10.0-416.10.0-4016.10.0-4116.10.0-4216.10.0-4316.10.0-4416.10.0-4516.10.0-4616.10.0-4716.10.0-4816.10.0-4916.10.0-516.10.0-5016.10.0-5116.10.0-5216.10.0-616.10.0-716.10.0-8 | None listed |
gitlab-rails-18Docker Hardened Images:Debian:13 | 18.11.11-0 and later, plus listed versions 18.11.11-118.11.11-218.11.12-018.11.12-118.11.12-2 Show 40 more versionsShow less18.11.14-018.11.14-118.11.14-1018.11.14-1118.11.14-1218.11.14-1318.11.14-1418.11.14-1518.11.14-1618.11.14-1718.11.14-1818.11.14-1918.11.14-218.11.14-2018.11.14-2118.11.14-2218.11.14-2318.11.14-2418.11.14-2518.11.14-2618.11.14-2718.11.14-2818.11.14-2918.11.14-318.11.14-3018.11.14-3118.11.14-3218.11.14-418.11.14-518.11.14-618.11.14-718.11.14-818.11.14-918.11.15-018.11.15-118.11.15-218.11.15-318.11.15-418.11.15-518.11.15-6 | None listed |
gitlab-rails-19Docker Hardened Images:Debian:13 | 19.1.8-0 and later, plus listed versions 19.1.8-119.4.1-019.4.1-119.4.1-219.4.2-0 Show 43 more versionsShow less19.5.3-019.5.3-119.5.3-219.5.3-319.5.3-419.5.3-519.5.3-619.5.3-719.5.3-819.5.3-919.5.4-019.5.4-119.5.5-019.5.5-119.5.5-1019.5.5-1119.5.5-219.5.5-319.5.5-419.5.5-519.5.5-619.5.5-719.5.5-819.5.5-919.5.6-019.5.6-119.5.6-219.5.6-319.5.6-419.5.6-519.6.0-019.6.0-119.6.0-219.6.1-019.6.1-119.6.1-219.6.2-019.6.2-119.6.2-219.6.2-319.6.2-419.6.2-519.6.2-6 | None listed |
The JSON record also has 77 more versions.
Products 1
Sources
CVE List Score usedCVSS 3.14.8
Rack: `Rack::Multipart::Parser` preserves CRLF from multipart part headers in parsed parameter names (incomplete fix for CVE-2026-26962)
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser incompletely prevents carriage return and line feed characters from multipart part headers from reaching parsed values. In Rack 3.1.16 and later and Rack 3.2, folded Content-ID values can become parameter names when Content-Disposition is missing or exceeds CONTENT_DISPOSITION_MAX_BYTES because Content-ID is not unfolded. In Rack 2.2, quoted name or filename values and Content-Type values can match across line breaks. Applications that reuse these parameter names or uploaded-file content types in response headers, log lines, or other CRLF-delimited contexts may permit header injection, response splitting, or log forgery, while Rack itself does not write these values to those sinks. Rack 3.0 is affected. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
- Record
CVE-2026-142590- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-93
- Updated
- 2026-12-05
EUVDEUVD-2026-141891CVSS 3.14.8
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser incompletely prevents carriage return and line feed characters from multipart part headers from reaching parsed values. In Rack 3.1.16 and later and Rack 3.2, folded Content-ID values can become parameter names when Content-Disposition is missing or exceeds CONTENT_DISPOSITION_MAX_BYTES because Content-ID is not unfolded. In Rack 2.2, quoted name or filename values and Content-Type values can match across line breaks. Applications that reuse these parameter names or uploaded-file content types in response headers, log lines, or other CRLF-delimited contexts may permit header injection, response splitting, or log forgery, while Rack itself does not write these values to those sinks. Rack 3.0 is affected. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
- Record
EUVD-2026-141891- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Updated
- 2026-12-05
GitHub AdvisoriesGHSA-frgv-948x-h96gCVSS 3.14.8
Rack: `Rack::Multipart::Parser` preserves CRLF from multipart part headers in parsed parameter names (incomplete fix for CVE-2026-26962)
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-TypeandContent-Dispositionvalues but notContent-ID. When a part has no usableContent-Dispositionheader, the part's name is taken fromContent-ID, so a foldedContent-IDvalue 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
nameorfilenamecontaining CRLF is accepted as is, and a bare CR is accepted in aContent-Typevalue.
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:
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 and Content-Type are correctly unfolded on these versions; the Content-ID-derived name is the only value that still carries a raw CRLF from the header. (A filename parameter is percent-decoded by design, so %0D%0A in a filename decodes to CRLF on all versions; that is documented behaviour and not part of this advisory.)
Rack 3.1.16 and later and 3.2.0 and later are affected by this variant, since those versions introduced the Content-ID pattern that accepts folded values. Rack 3.0 is not affected by it: its Content-ID pattern does not match across a line break.
Rack 2.2
Rack 2.2's fix for CVE-2026-26962 unfolds the whole part header before any value is extracted, so folded Content-ID values are handled. However, the pattern used to extract quoted parameter values and the Content-Type pattern do not exclude line breaks:
VALUE = /"(?:\\"|[^"])*"|#{TOKEN}/
MULTIPART_CONTENT_TYPE = /Content-Type: (.*)#{EOL}/ni
A quoted value such as name="a\r\nb" is accepted whole, so the CRLF reaches the parameter name, and a Content-Type value containing a bare CR, such as text/plain\rX-Injected: 1, is preserved in UploadedFile#content_type and, for a part without Content-Disposition, in the parameter name. Rack 3.x rejects these inputs because its header value patterns only permit CRLF when followed by whitespace.
All Rack 2.2 releases up to and including 2.2.25 are affected by this variant. (Rack 3.0, which is no longer supported, shares it.)
Impact
Applications that accept multipart requests and later reuse parameter names, or uploaded file content types, in HTTP response headers, log lines, or other CRLF-delimited contexts. An unauthenticated attacker can place CRLF into a parameter name deterministically with a single request; whether that leads to header injection, response splitting, or log forgery depends on how the application consumes those values. Rack itself does not write parameter names to response headers or logs.…
- Record
GHSA-frgv-948x-h96g- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-93
- Updated
- 2026-12-02
NVDCVSS 3.14.8
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser incompletely prevents carriage return and line feed characters from multipart part headers from reaching parsed values. In Rack 3.1.16 and later and Rack 3.2, folded Content-ID values can become parameter names when Content-Disposition is missing or exceeds CONTENT_DISPOSITION_MAX_BYTES because Content-ID is not unfolded. In Rack 2.2, quoted name or filename values and Content-Type values can match across line breaks. Applications that reuse these parameter names or uploaded-file content types in response headers, log lines, or other CRLF-delimited contexts may permit header injection, response splitting, or log forgery, while Rack itself does not write these values to those sinks. Rack 3.0 is affected. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
- Record
CVE-2026-142590- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-93
- Updated
- 2026-12-05
OSVCVSS 3.14.8
Rack: `Rack::Multipart::Parser` preserves CRLF from multipart part headers in parsed parameter names (incomplete fix for CVE-2026-26962)
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser incompletely prevents carriage return and line feed characters from multipart part headers from reaching parsed values. In Rack 3.1.16 and later and Rack 3.2, folded Content-ID values can become parameter names when Content-Disposition is missing or exceeds CONTENT_DISPOSITION_MAX_BYTES because Content-ID is not unfolded. In Rack 2.2, quoted name or filename values and Content-Type values can match across line breaks. Applications that reuse these parameter names or uploaded-file content types in response headers, log lines, or other CRLF-delimited contexts may permit header injection, response splitting, or log forgery, while Rack itself does not write these values to those sinks. Rack 3.0 is affected. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
- Record
CVE-2026-142590- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-93
- Updated
- 2026-12-03
OSVDHI-wlce-66jt-nfzi-gpbjCVSS 3.14.8
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser incompletely…
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser incompletely prevents carriage return and line feed characters from multipart part headers from reaching parsed values. In Rack 3.1.16 and later and Rack 3.2, folded Content-ID values can become parameter names when Content-Disposition is missing or exceeds CONTENT_DISPOSITION_MAX_BYTES because Content-ID is not unfolded. In Rack 2.2, quoted name or filename values and Content-Type values can match across line breaks. Applications that reuse these parameter names or uploaded-file content types in response headers, log lines, or other CRLF-delimited contexts may permit header injection, response splitting, or log forgery, while Rack itself does not write these values to those sinks. Rack 3.0 is affected. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
- Record
DHI-wlce-66jt-nfzi-gpbj- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Updated
- 2026-12-04
OSVGHSA-frgv-948x-h96gCVSS 3.14.8
Rack: `Rack::Multipart::Parser` preserves CRLF from multipart part headers in parsed parameter names (incomplete fix for CVE-2026-26962)
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-TypeandContent-Dispositionvalues but notContent-ID. When a part has no usableContent-Dispositionheader, the part's name is taken fromContent-ID, so a foldedContent-IDvalue 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
nameorfilenamecontaining CRLF is accepted as is, and a bare CR is accepted in aContent-Typevalue.
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:
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 and Content-Type are correctly unfolded on these versions; the Content-ID-derived name is the only value that still carries a raw CRLF from the header. (A filename parameter is percent-decoded by design, so %0D%0A in a filename decodes to CRLF on all versions; that is documented behaviour and not part of this advisory.)
Rack 3.1.16 and later and 3.2.0 and later are affected by this variant, since those versions introduced the Content-ID pattern that accepts folded values. Rack 3.0 is not affected by it: its Content-ID pattern does not match across a line break.
Rack 2.2
Rack 2.2's fix for CVE-2026-26962 unfolds the whole part header before any value is extracted, so folded Content-ID values are handled. However, the pattern used to extract quoted parameter values and the Content-Type pattern do not exclude line breaks:
VALUE = /"(?:\\"|[^"])*"|#{TOKEN}/
MULTIPART_CONTENT_TYPE = /Content-Type: (.*)#{EOL}/ni
A quoted value such as name="a\r\nb" is accepted whole, so the CRLF reaches the parameter name, and a Content-Type value containing a bare CR, such as text/plain\rX-Injected: 1, is preserved in UploadedFile#content_type and, for a part without Content-Disposition, in the parameter name. Rack 3.x rejects these inputs because its header value patterns only permit CRLF when followed by whitespace.
All Rack 2.2 releases up to and including 2.2.25 are affected by this variant. (Rack 3.0, which is no longer supported, shares it.)
Impact
Applications that accept multipart requests and later reuse parameter names, or uploaded file content types, in HTTP response headers, log lines, or other CRLF-delimited contexts. An unauthenticated attacker can place CRLF into a parameter name deterministically with a single request; whether that leads to header injection, response splitting, or log forgery depends on how the application consumes those values. Rack itself does not write parameter names to response headers or logs.…
- Record
GHSA-frgv-948x-h96g- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-93
- Updated
- 2026-12-03
The JSON record also has the rest of 2 source descriptions.
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, references | OSV | |
| Affected packages, other IDs, references | OSV | |
| Affected packages, references | OSV | |
| Affected packages, key facts, references | GitHub Advisories | |
| Other IDs, references | NVD, OSV | |
| Other IDs, published date | EUVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/rack/rack/security/advisories/GHSA-frgv-948x-h96g
github.com/rack/rack/commit/770241c043cb9f2d4bb9ef5f55091c0e019264d1
github.com/rack/rack/commit/95cf65878060577f49574190db92a807053fc08b
github.com/rack/rack/commit/a08cec232d5ba547ad4d646bba139c96a57706b8
github.com/rack/rack/releases/tag/v2.2.26
github.com/rack/rack/releases/tag/v3.1.24
github.com/rack/rack/releases/tag/v3.2.9
github.com/advisories/GHSA-frgv-948x-h96g