CVE-2026-34829 — Vulnerability in rack — CVE Details
Rack's multipart parsing without Content-Length header allows unbounded chunked file uploads
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.70%). Schedule for your next planned update.
Does your project use an affected rack version?
Paste your Gemfile.lock to check it for CVE-2026-34829 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
Rack::Multipart::Parser only wraps the request body in a BoundedIO when CONTENT_LENGTH is present. When a multipart/form-data request is sent without a Content-Length header, such as with HTTP chunked transfer encoding, multipart parsing continues until end-of-stream with no total size limit.
For file parts, the uploaded body is written directly to a temporary file on disk rather than being constrained by the buffered in-memory upload limit. An unauthenticated attacker can therefore stream an arbitrarily large multipart file upload and consume unbounded disk space.
This results in a denial of service condition for Rack applications that accept multipart form data.
Details
Rack::Multipart::Parser.parse applies BoundedIO only when content_length is not nil:
io = BoundedIO.new(io, content_length) if content_length
When CONTENT_LENGTH is absent, the parser reads the multipart body until EOF without a global byte limit.
Although Rack enforces BUFFERED_UPLOAD_BYTESIZE_LIMIT for retained non-file parts, file uploads are handled differently. When a multipart part includes a filename, the body is streamed to a Tempfile, and the retained-size accounting is not applied to that file content. As a result, file parts are not subject to the same upload size bound.
An attacker can exploit this by sending a chunked multipart/form-data request containing a file part and continuously streaming data without declaring a Content-Length. Rack will continue writing the uploaded data to disk until the client stops or the server exhausts available storage.
Impact
Any Rack application that accepts multipart/form-data uploads may be affected if no upstream component enforces a request body size limit.
An unauthenticated attacker can send a large chunked file upload to consume disk space on the application host. This may cause request failures, application instability, or broader service disruption if the host runs out of available storage.
The practical impact depends on deployment architecture. Reverse proxies or application servers that enforce upload limits may reduce or eliminate exploitability, but Rack itself does not impose a total multipart upload limit in this code path when CONTENT_LENGTH is absent.
Mitigation
- Update to a patched version of Rack that enforces a total multipart upload size limit even when
CONTENT_LENGTHis absent. - Enforce request body size limits at the reverse proxy or application server.
- Isolate temporary upload storage and monitor disk consumption for multipart endpoints.
Advisory Timeline
- First published April 2, 2026 (238 days ago).
- Last revised September 10, 2026 — 160 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install rack -v 2.2.23
gem install rack -v 3.2.6
gem install rack -v 3.1.21
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: RubyGems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
Frequently Asked Questions
- What is CVE-2026-34829?
- Rack's multipart parsing without Content-Length header allows unbounded chunked file uploads. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-34829?
- CVE-2026-34829 affects rack. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-34829 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 48.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-34230HIGH
Rack has quadratic complexity in Rack::Utils.select_best_encoding via wildcard Accept-Encoding header
- CVE-2026-34827HIGH
Rack's multipart header parsing allows Denial of Service via escape-heavy quoted parameters
- CVE-2026-34831MEDIUM
Rack has Content-Length mismatch in Rack::Files error responses
- CVE-2026-34786MEDIUM
Rack:: Static header_rules bypass via URL-encoded paths
- CVE-2026-32762MEDIUM
Rack: Forwarded Header semicolon injection enables Host and Scheme spoofing
- CVE-2026-34830MEDIUM
Rack::Sendfile header-based X-Accel-Mapping regex injection enables unauthorized X-Accel-Redirect
- CVE-2025-61780MEDIUM
Rack has a Possible Information Disclosure Vulnerability
- CVE-2026-26962MEDIUM
Rack's improper unfolding of folded multipart headers preserves CRLF in parsed parameter values