CVE-2026-34826
MediumCVSS 5.3Exploitation Probability (EPSS)
Low risk39th percentile - higher than 39% of all known CVEs
Summary
Rack before versions 2.2.23, 3.1.21, and 3.2.6 has a denial of service vulnerability due to an unlimited number of byte ranges in the HTTP Range header. An attacker can supply many small overlapping ranges, causing disproportionate CPU, memory, I/O, and bandwidth consumption.
Risk Assessment
An attacker can overload the Rack server, causing denial of service for all requests serving files with multipart byte range responses.
Recommendation
Upgrade Rack to version 2.2.23, 3.1.21, or 3.2.6 depending on the branch in use.
Other vulnerabilities in Rack
See all- CVE-2026-142594Low
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser.parse_boundary locates boundary= as a substring anywhere in a Content-Type header instead of parsing named parameters consistently with Rack::MediaType.params, truncates quoted boundary values at delimiters, preserves surrounding whitespace, and does not correctly process quoted-pair escapes. A conforming intermediary can therefore find no boundary or a different boundary while Rack parses attacker-controlled multipart parts, allowing form fields or uploads to bypass web application firewall inspection. Exploitation requires an intermediary that inspects multipart bodies using a conforming parser, and Rack itself grants no capability beyond a well-formed request carrying the same body. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
- CVE-2026-142593Medium
Rack is a modular Ruby web server interface. From 2.2.0 until 2.2.26, 3.1.24, and 3.2.9, Rack::Directory#get checks a path containing dot-dot segments with File.expand_path but then passes the original unnormalized path to File.stat and Dir.foreach instead of first applying Utils.clean_path_info. When a directory beneath the served root is a symbolic link followed by .., the OS resolves the link before applying the dot-dot segment, allowing an unauthenticated request to list the target's parent or siblings outside the root.
- CVE-2026-142592High
Rack is a modular Ruby web server interface. From 3.0.0 until 3.1.24 and 3.2.9, the multipart parser calls Encoding.find for every unknown charset parameter without checking Encoding.name_list first, allowing an unauthenticated attacker to exhaust a worker thread by sending thousands of unknown charset parameters in a small multipart request.
- CVE-2026-142591Medium
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::QueryParser uses quantified DEFAULT_SEP and COMMON_SEP regular expressions when splitting query strings and application/x-www-form-urlencoded bodies, while params_hash_has_key? and the Rack 2.2 normalize_params path use quantified expressions for bracketed parameter names. Long runs of spaces after an ampersand, or long runs of bracket characters in a parameter name, cause Ruby's regex engine to allocate approximately 48 bytes of backtracking state per input character. An unauthenticated attacker can cause substantial transient memory allocation with one request, and concurrent requests can exhaust process or container memory.
- CVE-2026-142590Medium
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser incompletely prevents CR and LF characters from multipart part headers from reaching parsed values. In Rack 3.1.16 and later and Rack 3.2, folded Content-ID values can become parameter names when Content-Disposition is missing or exceeds CONTENT_DISPOSITION_MAX_BYTES. In Rack 2.2, quoted name or filename values and Content-Type values can match across line breaks. Applications that reuse these parameter names or uploaded-file content types in response headers, log lines, or other CRLF-delimited contexts may permit header injection, response splitting, or log forgery.
- CVE-2026-125111High
In Rack 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.
- CVE-2026-125110Medium
Rack is a modular Ruby web server interface. Prior to 2.2.25, 3.1.23, and 3.2.8, Rack::Static serves a path after Utils.clean_path_info normalization but evaluates header_rules against a path that is only URL-decoded. An unauthenticated attacker can request a known file through raw or percent-encoded dot segments and receive it without path-specific security headers such as Content-Disposition or Content-Security-Policy.
- CVE-2026-125109Medium
Rack is a modular Ruby web server interface. From 3.0 until 3.1.23 and 3.2.8, Rack::Request#host_with_port, #base_url, and #url can return an attacker-controlled invalid authority from Host, X-Forwarded-Host, or Forwarded: host= verbatim. Applications without an independent host allowlist using these methods for absolute URLs, redirects, or origin checks can emit attacker-chosen delimiters.
- CVE-2026-125108Low
In Rack, Rack::Multipart::Parser.parse_boundary can skip a leading empty or quoted boundary parameter in a multipart Content-Type header and accept a later parameter. Rack can therefore parse a request body with a boundary a conforming intermediary would not derive, allowing form fields or file uploads to reach an application without intended proxy or WAF inspection. The issue is fixed in versions 2.2.25, 3.1.23, and 3.2.8.
- CVE-2026-34835Medium
Rack::Request incorrectly parses the Host header, accepting characters like /, ?, #, and @ that are not allowed in RFC-compliant hostnames. The req.host method returns the full unvalidated value, allowing bypass of host validation based on simple prefix or suffix checks.
Original NVD description (English source)
Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Utils.get_byte_ranges parses the HTTP Range header without limiting the number of individual byte ranges. Although the existing fix for CVE-2024-26141 rejects ranges whose total byte coverage exceeds the file size, it does not restrict the count of ranges. An attacker can supply many small overlapping ranges such as 0-0,0-0,0-0,... to trigger disproportionate CPU, memory, I/O, and bandwidth consumption per request. This results in a denial of service condition in Rack file-serving paths that process multipart byte range responses. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

