Rack multipart parsing lets attackers exhaust memory
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
Rack, a modular Ruby web server interface, fails to release parsed multipart data in the internal StringScanner buffer of Rack::Multipart::Parser when reads end inside or after multipart headers, affecting Rack before 2.2.25, from 3.0 before 3.1.23, and from 3.2 before 3.2.8. The flaw is an uncontrolled resource consumption issue (CWE-400). An unauthenticated remote attacker sends a well-formed multipart body with many small parts sized to the buffer boundaries, so the buffer grows with the request and exhausts the memory of a worker.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
Description from the CNA
Rack is a modular Ruby web server interface. Prior to 2.2.25, 3.1.23, and 3.2.8, Rack::Multipart::Parser can retain parsed data in its internal StringScanner buffer when reads end inside or immediately after multipart headers. An unauthenticated attacker can align many small parts with rack.multipart.buffer_size boundaries so the buffer grows with the request despite per-field, header, and preamble limits, causing a worker to exhaust memory. The attack requires only a well-formed multipart body and affects applications that parse multipart requests. This issue is fixed in versions 2.2.25, 3.1.23, and 3.2.8.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rack | rack | before 2.2.25; 3.0 to before 3.1.23; 3.2 to before 3.2.8 | 2.2.25, 3.1.23, 3.2.8 | Patch available | CNA |
| — | rack (RubyGems) | before 2.2.25 | 2.2.25 | Patch available | GHSA-5v64-555j-wjxm |
| — | rack (RubyGems) | 3.0.0 to before 3.1.23 | 3.1.23 | Patch available | GHSA-5v64-555j-wjxm |
| — | rack (RubyGems) | 3.2.0 to before 3.2.8 | 3.2.8 | Patch available | GHSA-5v64-555j-wjxm |
- rack Vendorrack Affected before 2.2.25; 3.0 to before 3.1.23; 3.2 to before 3.2.8 Fixed in 2.2.25, 3.1.23, 3.2.8 Patch available CNA
- rack (RubyGems) Vendor— Affected before 2.2.25 Fixed in 2.2.25 Patch available GHSA-5v64-555j-wjxm
- rack (RubyGems) Vendor— Affected 3.0.0 to before 3.1.23 Fixed in 3.1.23 Patch available GHSA-5v64-555j-wjxm
- rack (RubyGems) Vendor— Affected 3.2.0 to before 3.2.8 Fixed in 3.2.8 Patch available GHSA-5v64-555j-wjxm
Remediation
Rack versions 2.2.25, 3.1.23 and 3.2.8 fix this issue, one for each release line, so upgrade the rack gem to the fixed version for your line.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
- Fix · CNA rack (rack) Fixed in 2.2.25, 3.1.23, 3.2.8
- Fix · GHSA-5v64-555j-wjxm rack (RubyGems) Fixed in 2.2.25 Advisory →
- Fix · GHSA-5v64-555j-wjxm rack (RubyGems) Fixed in 3.1.23 Advisory →
- Fix · GHSA-5v64-555j-wjxm rack (RubyGems) Fixed in 3.2.8 Advisory →
Timeline
- 2026-11-09 Threatist record created from CVE-2026-125111
- 2026-11-10 Alias added: GHSA-5v64-555j-wjxm
- 2026-11-10 Fix available: RubyGems/[email protected], RubyGems/[email protected], RubyGems/[email protected] · GHSA-5v64-555j-wjxm
- 2026-11-10 CVSS score added · GHSA-5v64-555j-wjxm
- 2026-11-10 Weakness changed · GHSA-5v64-555j-wjxm
- 2026-11-10 7 new references · GHSA-5v64-555j-wjxm
- 2026-11-11 Priority changed: MEDIUM → LOW
- 2026-11-12 CISA SSVC decision points changed
References
Other 6
- https://github.com/rack/rack/security/advisories/GHSA-5v64-555j-wjxm
- https://github.com/rack/rack/commit/244e75a840cee0823f86d5d01dc374505a8abed8
- https://github.com/rack/rack/commit/2eaa5b1026a03a43b6537b1a0b233707ba887702
- https://github.com/rack/rack/commit/c9b4698595050838342bd3b5a0fc9ab908065f8f
- https://github.com/rack/rack
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/GHSA-5v64-555j-wjxm.yml
More rack vulnerabilities
- TI-2024-23301 rack-contrib vulnerable to Denial of Service due to the unconstrained value of the incoming "profiler_runs" parameter CVSS 3.1HIGH 8.6
- TI-2024-16580 Rack ReDos in content type parsing (2nd degree polynomial) CVSS 3.1HIGH 7.5
- TI-2026-28312 Rack::Session::Cookie secrets: decrypt failure fallback enables secretless session forgery and Marshal deserialization CVSS 4.0CRITICAL 9.3
- TI-2024-17236 Possible Denial of Service Vulnerability in Rack Header Parsing CVSS 3.1HIGH 7.5
- TI-2024-17231 Possible DoS Vulnerability with Range Header in Rack CVSS 3.1HIGH 7.5
- TI-2023-12254 Uncontrolled resource consumption in https://github.com/rack/rack CVSS 3.1HIGH 7.5
Sources
- CVE-2026-125111 · CVE Program
- CVE-2026-125111 · NVD
- FIRST EPSS
- GHSA-5v64-555j-wjxm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences