Skip to main content

Rack CVE-2026-34827

| EUVDEUVD-2026-18474 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-04-02 GitHub_M GHSA-v6x5-cg8r-vv6x
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 form-data request
  2. Delivery
    Parser processes escaped quoted parameters
  3. Exploit
    Repeated string index/slice operations
  4. Execution
    Super-linear CPU consumption
  5. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Remote unauthenticated attacker sends crafted multipart/form-data HTTP request with many parts containing long backslash-escaped Content-Disposition parameter values to Ruby applications using Rack versions 3.0.0.beta1–3.1.20 or 3.2.0–3.2.5. No victim interaction required.

Impact

This vulnerability presents moderate-to-high operational risk for production Ruby web applications. The CVSS 7.5 reflects the severe availability impact (A:H) combined with a trivially exploitable attack surface: network-accessible (AV:N), low complexity (AC:L), and no authentication required (PR:N). Any public-facing Rack application accepting multipart uploads is vulnerable to resource exhaustion attacks. However, risk is somewhat mitigated by the absence of confirmed active exploitation (no CISA KEV listing) and no publicly available proof-of-concept at time of analysis. The attack requires crafting malicious multipart payloads but demands no special access or user interaction (UI:N), making automated scanning feasible. Real-world impact depends on application request size limits, timeouts, and rate limiting - services without these protections face higher risk of successful DoS. The availability of vendor patches in actively maintained versions (3.1.21, 3.2.6) enables straightforward remediation, reducing window of exposure for diligent operators. Organizations running affected versions should prioritize patching, especially for internet-facing services handling untrusted file uploads.

Exploit ScenarioDerived

An unauthenticated attacker identifies a public-facing Ruby on Rails application running vulnerable Rack 3.1.15 that accepts file uploads through a contact form or document submission feature. The attacker crafts a malicious HTTP POST request with Content-Type multipart/form-data containing a single form field with a Content-Disposition header featuring a name parameter with 10,000 consecutive backslash escape sequences. Upon receiving this request, the Rack multipart parser enters a super-linear processing loop, consuming a full CPU core for several seconds while parsing the deliberately malformed parameter. The attacker scripts this request to repeat every second from distributed sources, overwhelming application servers and preventing legitimate users from accessing the service, achieving complete denial of service without requiring authentication or triggering traditional rate limits focused on request volume rather than processing cost.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 02, 2026

Denial of service via algorithmic complexity in Rack multipart parser allows unauthenticated remote attackers to exhaust CPU resources by sending specially crafted multipart/form-data requests with backslash-heavy escaped parameter values. Affects Rack 3.0.0.beta1-3.1.20 and 3.2.0-3.2.5, a critical Ruby web server interface used across Rails and Sinatra applications. CVSS 7.5 (High) with network-accessible attack vector and low complexity. Vendor-released patches available in versions 3.1.21 and 3.2.6. No public exploit identified at time of analysis, though EPSS data not provided to assess probability of exploitation.

RemediationAI

Vendor-released patches are available in Rack versions 3.1.21 and 3.2.6, which address the algorithmic complexity issue in multipart parameter parsing. Organizations should immediately upgrade to these patched versions based on their current release branch: upgrade to 3.1.21 if running the 3.0.x or 3.1.x series, or upgrade to 3.2.6 if running the 3.2.x series. For Ruby on Rails applications, update the Rack dependency in your Gemfile by specifying gem 'rack', '~> 3.1.21' or '~> 3.2.6' as appropriate, then run bundle update rack. For Sinatra and other Rack-based frameworks, apply the same Gemfile update process. After upgrading, verify the installed version with bundle show rack or gem list rack. If immediate patching is not feasible, consider temporary mitigations including strict request size limits for multipart uploads (reducing attack payload size), aggressive request timeouts for form processing (limiting CPU consumption per request), and rate limiting on upload endpoints (restricting attack frequency). Consult the official GitHub security advisory at https://github.com/rack/rack/security/advisories/GHSA-v6x5-cg8r-vv6x for additional vendor guidance and release notes.

Affected VersionsENISA

rack 3.2.0, < 3.2.6
rack 3.0.0.beta1, < 3.1.21

Affected Packages

rubygems rack fix: 3.1.21, 3.2.6
euvd rack_3_0_0_beta1 fix: 3.1.21

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in rubygems, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Rack serves as the foundational web server interface for Ruby applications, including Ruby on Rails and Sinatra frameworks. The vulnerability resides in Rack::Multipart::Parser#handle_mime_head, which processes Content-Disposition headers in multipart/form-data requests. The parser uses a String#index search combined with String#slice! for extracting quoted parameter values, creating a quadratic-time algorithm (CWE-407: Inefficient Algorithmic Complexity) when processing escape sequences. Each backslash in a quoted value forces the parser to scan incrementally through the string, with prefix deletion compounding the inefficiency. For input containing n escape sequences, this results in O(n²) time complexity. The affected component handles standard HTTP file uploads and form submissions, making it widely exposed in web applications accepting user-generated content.

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
SUSE HIGH
Red Hat 7.5 HIGH

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 released
Apr 03, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 02, 2026 - 17:07 nvd
HIGH 7.5

DescriptionCVE.org

Rack is a modular Ruby web server interface. From versions 3.0.0.beta1 to before 3.1.21, and 3.2.0 to before 3.2.6, Rack::Multipart::Parser#handle_mime_head parses quoted multipart parameters such as Content-Disposition: form-data; name="..." using repeated String#index searches combined with String#slice! prefix deletion. For escape-heavy quoted values, this causes super-linear processing. An unauthenticated attacker can send a crafted multipart/form-data request containing many parts with long backslash-escaped parameter values to trigger excessive CPU usage during multipart parsing. This results in a denial of service condition in Rack applications that accept multipart form data. This issue has been patched in versions 3.1.21 and 3.2.6.

Executive ViewAI

Why It Matters

CVE-2026-34827 affects Rack, a foundational Ruby web server interface used by Rails and Sinatra applications, enabling unauthenticated remote denial-of-service attacks through CPU exhaustion via malformed form submissions. Organizations running Rack versions 3.0.0 through 3.1.20 or 3.2.0 through 3.2.5 face immediate risk of service disruption from low-complexity attacks requiring no authentication. This vulnerability impacts any web application built on these frameworks and versions, potentially affecting customer-facing services and internal tools.

Business Impact: High
Compensating Controls

Apply vendor patch (Rack 3.1.21 or 3.2.6). If immediate patching is not feasible, implement rate-limiting and request size caps on multipart/form-data uploads at load balancer or WAF level; monitor CPU utilization for anomalous spikes during multipart request processing and alert on sustained elevated consumption.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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 0.0%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

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)

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 16.1 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Public Cloud 15 SP7 Fixed

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