Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted multipart POST
-
DeliveryAlign small parts to buffer_size boundaries
-
ExploitScan buffer never compacted, grows with request
-
ExecutionWorker memory exhausted
-
ImpactDenial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No authentication or user interaction is required (PR:N/UI:N): the condition is simply that the application parses multipart/form-data requests with Rack, which the advisory states affects the default configuration. The specific prerequisite is request parts crafted so that each read chunk of rack.multipart.buffer_size (1 MiB default) ends inside, or immediately after, a part's MIME headers, so the StringScanner buffer is never compacted; existing per-field, header, and preamble limits do not apply because each individual part stays small. Limiting factors that reduce realistic risk: the impact is availability-only (single worker memory exhaustion, no code execution or data access), and exploitation is bounded or blocked by a request-body-size limit at a reverse proxy/application boundary or by setting RACK_MULTIPART_PARSER_BYTESIZE_LIMIT to the largest multipart body the app must accept. Endpoints that do not accept multipart bodies are not reachable via this vector. |
| Impact | This is a credible but bounded denial-of-service issue, not a high-CVSS-but-no-real-risk item. The CVSS 7.5 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) is internally consistent with the advisory: network-reachable, low-complexity, unauthenticated, with impact limited purely to availability (C:N/I:N), which matches a memory-exhaustion worker crash rather than code execution or data exposure. The decision label is 'this_week' (not act_now/emergency), aligning with a serious-but-not-fire DoS. No EPSS score and no CISA KEV entry were provided, and the vulnerability is not listed as actively exploited, so there is currently no evidence of in-the-wild abuse. The attack is attractive because it needs only a well-formed multipart body against default configurations and the GHSA advisory plus patch commits publicly document the exact alignment technique (parts sized to end inside/after headers so the StringScanner buffer is never compacted, reaching ~4 GiB from 4096 ~1 MiB parts), which materially lowers the barrier to building a working trigger. Weighing the signals: broad exposure and trivial preconditions push risk up, while availability-only impact, no confirmed exploitation, and the availability of straightforward reverse-proxy/body-size mitigations keep it below emergency priority - patch on a normal-but-prompt cycle. Note that EPSS is absent, so the probabilistic exploitation signal cannot be cross-checked against the KEV/decision signals here. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a single well-formed multipart/form-data POST containing thousands of tiny parts whose sizes are tuned so each read chunk ends inside or just after a part's headers, preventing the parser from discarding consumed bytes. The scan buffer grows to roughly the full request size (up to ~4 GiB with default limits), exhausting the worker process's memory and taking it down. No standalone weaponized exploit is reported, but the GHSA advisory and the fix commit's test case publicly describe the precise byte-alignment method needed to reproduce it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Memory exhaustion denial of service in Rack's multipart parser (prior to 2.2.25, 3.1.23, and 3.2.8) affects any Ruby application that parses multipart/form-data requests in its default configuration. An unauthenticated remote attacker can craft a well-formed multipart body whose parts are sized to align with rack.multipart.buffer_size (1 MiB by default) boundaries so that each read ends inside or immediately after a part's MIME headers, preventing the internal StringScanner buffer from being compacted; with default limits the retained buffer can reach roughly 4 GiB per request. Impact is availability-only (CVSS 7.5, A:H, AC:L, PR:N, UI:N): a single request can exhaust worker memory, but no code execution or data access results, and exploitation is bounded or blocked by request-body-size limits or by setting RACK_MULTIPART_PARSER_BYTESIZE_LIMIT to the largest multipart body the application must accept. No public exploit code is identified at time of analysis; upstream fixes are committed and released as 2.2.25, 3.1.23, and 3.2.8.
RemediationAI
Upgrade Rack to 2.2.25, 3.1.23, or 3.2.8 (per branch) as documented in GHSA-5v64-555j-wjxm; the fix makes the parser discard parsed bytes from its scan buffer before reading more data, and the patch is available via the upstream commits linked in the advisory. Until patched, the vendor-stated mitigations are to limit the request body size at a reverse proxy or application boundary - accepting only the multipart body sizes the application actually needs, at the cost of rejecting larger legitimate uploads - and to set RACK_MULTIPART_PARSER_BYTESIZE_LIMIT to the largest multipart body the application must accept, which bounds the memory a single request can hold but likewise caps legitimate upload size. Endpoints that do not accept multipart bodies are not reachable via this vector.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in rubygems
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Rack is a modular Ruby web server interface, and Rack::Multipart::Parser handles multipart/form-data bodies by appending chunks read at rack.multipart.buffer_size (default 1 MiB) into an internal StringScanner. Under the class CWE-400 (Uncontrolled Resource Consumption), the root cause is missing buffer compaction: consumed bytes are discarded only when a chunk ends inside a part body and body bytes have already been consumed. In the header state, and in the body state when no body bytes have been consumed yet, the parser requests more data without removing anything, and bytes skipped between parts are not counted against any limit. An attacker aligns many small parts so that every chunk read terminates inside or immediately after the part headers, so the buffer grows with the request even though each individual part, header, and preamble stays within its per-field, header, and preamble limits. The advisory notes the buffer can reach roughly 4 GiB with default limits (4096 parts of about 1 MiB), while ordinary file uploads aligned the same way are bounded by the file part limit at roughly 128 MiB per request. The upstream commits (244e75a840cee0823f86d5d01dc374505a8abed8, 2eaa5b1026a03a43b6537b1a0b233707ba887702, c9b4698595050838342bd3b5a0fc9ab908065f8f) fix this by discarding the consumed prefix in handle_mime_head and in the body path before reading more data, with a regression test asserting the scan buffer stays below twice the buffer size. The exact triggering sequence for any particular deployment is described by the advisory as above; endpoints that do not accept multipart bodies are not reachable through this vector.
Know when Rack gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Remote, unauthenticated, low-complexity DoS against default multipart parsing with availability-only impact, so AV:N/AC:L/PR:N/UI:N and C:N/I:N/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-400 (Uncontrolled Resource Consumption).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-125111 is a high-severity memory exhaustion vulnerability in the Rack multipart parser that can allow a single unauthenticated request to exhaust worker memory, taking down any Ruby application that processes multipart/form-data. This directly threatens service availability for all users of affected applications, and while no public exploit code exists yet, the lack of a patch means proactive mitigation is critical to prevent potential outages.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Directory traversal in Rack versions prior to 2.2.22, 3.1.20, and 3.2.5 allows unauthenticated remote attackers to list
Rack is a modular Ruby web server interface. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable,
Rack is a modular Ruby web server interface. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable,
A reliance on cookies without validation/integrity check security vulnerability exists in rack < 2.2.3, rack < 2.1.4 tha
A sequence injection vulnerability exists in Rack <2.0.9.1, <2.1.4.1 and <2.2.3.1 which could allow is a possible shell
Rack provides an interface for developing web applications in Ruby. Rated medium severity (CVSS 5.7), this vulnerability
Rack's Directory module fails to sanitize filenames when generating HTML directory listings, allowing attackers to craft
Session authentication bypass in Rack::Session::Cookie 2.0.0 through 2.1.1 allows unauthenticated remote attackers to fo
A directory traversal vulnerability exists in rack < 2.2.0 that allows an attacker perform directory traversal vulnerabi
Rack::Session::Cookie in Rack 1.5.x before 1.5.2, 1.4.x before 1.4.5, 1.3.x before 1.3.10, 1.2.x before 1.2.8, and 1.1.x
A DoS vulnerability exists in Rack <v3.0.4.2, <v2.2.6.3, <v2.1.4.3 and <v2.0.9.3 within in the Multipart MIME parsing co
Memory exhaustion denial of service in the Ruby Rack web server interface (versions prior to 2.2.19, 3.1.17, and 3.2.2)
EUVD-2026-120485
GHSA-5v64-555j-wjxm
NVD
CVE.org
EPSS
Exploit-DB