Skip to main content

Rack CVE-2026-142592

| EUVDEUVD-2026-141927 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-12-02 GitHub_M
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send multipart POST to any path
  2. Delivery
    Part header carries thousands of unknown charset params
  3. Exploit
    Each charset forces full $LOAD_PATH encoding search
  4. Execution
    Worker thread pinned for tens of seconds
  5. Persist
    Concurrent requests exhaust thread pool
  6. Impact
    Denial 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

rack 3.2.0, < 3.2.9
rack 3.0.0, < 3.1.24

Affected Packages

euvd rack fix: 3.1.24, 3.2.9

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Dec 02, 2026 - 23:04 EUVD
CVE Published
Dec 02, 2026 - 21:34 cve.org
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

Prevalence
High
Rack underpins nearly all Ruby web apps (Rails, Sinatra); very broad ecosystem footprint
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Rack

View all
CVE-2026-22860 HIGH POC
7.5 Feb 18

Directory traversal in Rack versions prior to 2.2.22, 3.1.20, and 3.2.5 allows unauthenticated remote attackers to list

CVE-2024-26141 HIGH POC
7.5 Feb 29

Rack is a modular Ruby web server interface. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable,

CVE-2024-25126 HIGH POC
7.5 Feb 29

Rack is a modular Ruby web server interface. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable,

CVE-2020-8184 HIGH POC
7.5 Jun 19

A reliance on cookies without validation/integrity check security vulnerability exists in rack < 2.2.3, rack < 2.1.4 tha

CVE-2022-30123 CRITICAL
10.0 Dec 05

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

CVE-2025-25184 MEDIUM POC
5.7 Feb 12

Rack provides an interface for developing web applications in Ruby. Rated medium severity (CVSS 5.7), this vulnerability

CVE-2026-25500 MEDIUM POC
5.4 Feb 18

Rack's Directory module fails to sanitize filenames when generating HTML directory listings, allowing attackers to craft

CVE-2026-39324 CRITICAL
9.3 Apr 07

Session authentication bypass in Rack::Session::Cookie 2.0.0 through 2.1.1 allows unauthenticated remote attackers to fo

CVE-2020-8161 HIGH
8.6 Jul 02

A directory traversal vulnerability exists in rack < 2.2.0 that allows an attacker perform directory traversal vulnerabi

CVE-2013-0263 MEDIUM
5.1 Feb 08

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

CVE-2023-27530 HIGH
7.5 Mar 10

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

CVE-2025-61772 HIGH
7.5 Oct 07

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)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy