Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend multipart POST to any path
-
DeliveryPart header carries thousands of unknown charset params
-
ExploitEach charset forces full $LOAD_PATH encoding search
-
ExecutionWorker thread pinned for tens of seconds
-
PersistConcurrent requests exhaust thread pool
-
ImpactDenial of service for all users
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 | Exploitable against the default configuration of any application that parses multipart bodies through Rack::Request#POST or #params - the advisory states no authentication, malformed HTTP, or unusual configuration is required (consistent with PR:N/UI:N/AC:L). In a default Rails application, a POST to any path, including an unrouted one, suffices because Rack::MethodOverride parses the body before routing. The specific prerequisite is that the target runs Rack 3.0.0-3.1.23 or 3.2.0-3.2.8; Rack 2.2 is explicitly not affected because it does not rescue the ArgumentError and aborts after the first unknown charset. Factors that increase impact: the number of gems / $LOAD_PATH entries (a larger bundle makes each lookup more expensive - about 2.5 ms per lookup measured on Linux with 167 entries), and attacker concurrency against a bounded worker pool. Reverse-proxy limits on multipart request size or on repeated charset parameters reduce exposure but, per the vendor, updating is the only complete fix. |
| Impact | All severity signals point to a genuine but bounded availability problem. The CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5 HIGH) describes a network-reachable, low-complexity, unauthenticated flaw with impact restricted to availability - no confidentiality or integrity loss (C:N/I:N). This is consistent with the CWE-400 (uncontrolled resource consumption) classification and the advisory's detailed description of CPU exhaustion. The vuln.today decision label is 'this_week' (not 'act_now' or 'emergency'), which fits a serious DoS that is not a remote-code-execution emergency. No EPSS score and no CISA KEV status were supplied, so there is no evidence of active exploitation - treat exploitation as unproven rather than absent. No public exploit code reference was provided either (the references are the GHSA advisory, the fix commits, and the release tags), so this is not a weaponized issue at time of analysis. The main factor elevating real-world risk is that the advisory confirms the default-configuration reachability: in a default Rails app a POST to any path, even an unrouted one, triggers multipart parsing before routing via Rack::MethodOverride, and the attack cost scales with the application's bundle size. The main factor limiting risk is the impact ceiling - a single worker thread is tied up for tens of seconds to minutes and concurrent requests can exhaust the thread pool, but there is no data exposure or code execution. Net: a credible, prioritize-this-week availability risk for internet-facing Ruby/Rack applications, not a drop-everything emergency. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a sub-1 MB multipart/form-data POST to any path of a Rack-based application (e.g. a default Rails app), where one part's Content-Type header carries thousands of unknown charset parameters such as ';charset=x'. Each unknown name forces a full $LOAD_PATH search in Ruby's Encoding.find, so a single 64 KB part can occupy a worker thread for roughly 1.7 s and a 1 MB request for 27-40 s, and a handful of concurrent requests exhausts the thread pool and stalls unrelated endpoints. No public exploit code was identified in the provided data, but the advisory documents the technique and measured timings in full detail. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Unbounded CPU consumption in Rack's multipart parser (3.0.0 through 3.1.23 and 3.2.0 through 3.2.8) lets a remote attacker hold a worker thread for tens of seconds with a request under 1 MB by placing thousands of unknown charset parameters in a single multipart part's Content-Type header. Ruby's Encoding.find performs an uncached sweep of every $LOAD_PATH directory for each unrecognized name, and Rack rescues the resulting ArgumentError without caching the failure or limiting how many charset parameters a part may carry. Any application that parses multipart bodies through Rack::Request#POST or #params is exposed in its default configuration - in a default Rails app a POST to any path, even an unrouted one, is sufficient because Rack::MethodOverride parses the body before routing - while Rack 2.2 aborts parsing on the first unknown charset and is not affected. No public exploit code has been identified at time of analysis and the issue is not listed in CISA KEV; the vendor advisory nonetheless publishes per-lookup timings and request sizes measured under Bundler and Puma.
RemediationAI
Vendor-released patches exist on both maintained branches: upgrade to Rack 3.1.24 (fixes 3.0.0 through 3.1.23) or 3.2.9 (fixes 3.2.0 through 3.2.8), as documented in GHSA-58mf-c3jj-277p (https://github.com/rack/rack/security/advisories/GHSA-58mf-c3jj-277p) and the release notes at https://github.com/rack/rack/releases/tag/v3.1.24 and https://github.com/rack/rack/releases/tag/v3.2.9; the corresponding upstream changes are commits 7c16c669fe2040ac395cf05a242f80527ddab16b and 8ae2ea868a13eec2cfa7065a1ea8b527c567fad9, which gate Encoding.find on a precomputed Encoding.name_list set. Rack 2.2 users are not affected by this denial of service and do not need to change branch for this issue. Because the vendor states that updating is the only complete fix, treat reverse-proxy mitigations as interim only: capping the size of multipart request bodies limits the number of charset parameters a single request can carry, and rejecting requests whose part headers contain many repeated charset parameters blocks the observed pattern, but both trade against legitimate large multipart uploads and require the proxy to inspect part headers rather than only the outer Content-Type, which many default configurations do not do. Given the this_week priority label and the low attack complexity (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5), schedule the gem bump in the current patch cycle rather than deferring it.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Rack::Multipart::Parser#tag_multipart_encoding calls Encoding.find for every charset parameter found in a part's Content-Type header. When the supplied name is absent from Encoding.name_list, Ruby's Encoding.find falls through to load_encoding in encoding.c, which attempts to require enc/<name>.so via Ruby's internal loader and walks each entry of $LOAD_PATH before raising ArgumentError. That lookup is not cached and is not intercepted by RubyGems or Bootsnap, so the cost scales with bundle size: roughly 3-5 microseconds per load-path entry, about 30 microseconds on a bare Ruby, about 500 microseconds in a Bundler application with 200 entries on macOS, and about 2.5 milliseconds per lookup measured on Linux with 167 entries. Rack rescues the ArgumentError and falls back to Encoding::BINARY but neither remembers the failure nor bounds the number of charset parameters, and existing limits do not contain the attack because RACK_MULTIPART_PART_LIMIT (4096) counts parts rather than parameters, the 64 KiB part-header limit only applies when a header spans two reads, and part headers count toward the 16 MiB retained-size budget. This is CWE-400 (Uncontrolled Resource Consumption): a single 64 KB part with 4000 unknown charset parameters takes about 1.7 seconds to parse in a mid-sized Bundler application, a 1 MB request with 16 such parts takes 27-40 seconds, and four concurrent 1 MB requests through Puma in a default Rails application delayed an unrelated health-check endpoint by more than 10 seconds. The affected package range maps to CPE cpe:2.3:a:rack:rack:*:*:*:*:*:*:*:*, and the upstream fix precomputes a frozen Set of Encoding.name_list entries (downcased) and only invokes Encoding.find when the requested name appears in that set, treating everything else as binary.
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, no user interaction against default multipart parsing (AV:N/AC:L/PR:N/UI:N); impact is CPU/thread exhaustion only, so A:H with C:N/I:N and no scope change.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Rack is a modular Ruby web server interface. From 3.0.0 until 3.1.24 and 3.2.9, Rack::Multipart::Parser#tag_multipart_encoding calls Encoding.find for every charset parameter in a multipart part's Content-Type header without first checking Encoding.name_list. For an unknown name, Ruby searches each directory on $LOAD_PATH for an encoding library before raising ArgumentError, and Rack catches the exception without caching the failure or limiting repeated charset parameters. An unauthenticated attacker can send thousands of unknown charset parameters in a relatively small multipart request, occupying a worker thread for tens of seconds or longer, with cost increasing as the application's load path grows. Rack 2.2 is not affected by this denial of service because the first unknown charset aborts parsing. This issue is fixed in versions 3.1.24 and 3.2.9.
Technical POC Analysis
CWE-400 (Uncontrolled Resource Consumption), specifically unbounded CPU work driven by attacker-controlled repetition in one multipart header.
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-142592 is a high-severity denial-of-service vulnerability in Rack's multipart parser affecting versions 3.0.0 through 3.1.23 and 3.2.0 through 3.2.8. A remote, unauthenticated attacker can send a single small request to consume a worker thread for tens of seconds, potentially exhausting server resources and disrupting service for legitimate users. Any Ruby on Rails or Rack-based application using these versions is affected in its default configuration, making this a widespread operational risk for organizations relying on these frameworks.
No vendor-released patch identified at time of analysis. Interim mitigations include: deploying WAF rules to limit the number of charset parameters in multipart Content-Type headers; implementing rate limiting per client IP to reduce attack impact; using a reverse proxy to inspect and reject malformed multipart requests; and considering temporary code changes to limit charset parameter processing in Rack's multipart parser.
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-141927
NVD
CVE.org
GitHub
Exploit-DB