Read the docs

Rack multipart parsing lets attackers exhaust memory

Priority LOW 39CWE-400Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00366 30th percentileScored 2026-11-16
Fix Fixed rack (rack): 2.2.25, 3.1.23, 3.2.8rack (RubyGems): 2.2.25, 3.1.23, 3.2.8

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

VendorProductAffected versionsFixed inStatusSource
rackrackbefore 2.2.25; 3.0 to before 3.1.23; 3.2 to before 3.2.82.2.25, 3.1.23, 3.2.8Patch availableCNA
—rack (RubyGems)before 2.2.252.2.25Patch availableGHSA-5v64-555j-wjxm
—rack (RubyGems)3.0.0 to before 3.1.233.1.23Patch availableGHSA-5v64-555j-wjxm
—rack (RubyGems)3.2.0 to before 3.2.83.2.8Patch availableGHSA-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

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:rack:rack:*:*:*:*:*:*:*:*——rack
  • cpe:2.3:a:rack:rack:*:*:*:*:*:*:*:* Versions — — ·rack

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

  1. 2026-11-09 Threatist record created from CVE-2026-125111
  2. 2026-11-10 Alias added: GHSA-5v64-555j-wjxm
  3. 2026-11-10 Fix available: RubyGems/[email protected], RubyGems/[email protected], RubyGems/[email protected] · GHSA-5v64-555j-wjxm
  4. 2026-11-10 CVSS score added · GHSA-5v64-555j-wjxm
  5. 2026-11-10 Weakness changed · GHSA-5v64-555j-wjxm
  6. 2026-11-10 7 new references · GHSA-5v64-555j-wjxm
  7. 2026-11-11 Priority changed: MEDIUM → LOW
  8. 2026-11-12 CISA SSVC decision points changed

References

  • 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
See all 45 →

Sources