Skip to content
OpenAdvisories
High · 7.5 CVE-2026-34827 EUVD-2026-18474GHSA-v6x5-cg8r-vv6x

Rack: Algorithmic-Complexity DoS in Rack::Multipart::Parser

Published Apr 2, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
rack rack >= 3.0.0.beta1, < 3.1.21, >= 3.2.0, < 3.2.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-rack 3.2.6-2 —
Debian 13 ruby-rack 3.1.20-0+deb13u2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS ruby-rack 3.2.4-1ubuntu1.1 USN-8989-1
Ubuntu 25.10 ruby-rack 3.1.16-0.1ubuntu0.3 —
Ubuntu 24.04 LTS ruby-rack No fix yet —
Ubuntu 22.04 LTS ruby-rack No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS ruby-rack No fix yet —
Ubuntu Pro 18.04 LTS ruby-rack No fix yet —
Ubuntu Pro 16.04 LTS ruby-rack No fix yet —
Ubuntu Pro 14.04 LTS ruby-rack No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kube-fluentd-operator 1.18.2-r60 —
Wolfi rolling logstash-9.3 +2 9.3.3-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rack >= 3.0.0.beta1, < 3.1.21 3.1.21 GHSA-v6x5-cg8r-vv6x
RubyGems rack >= 3.2.0, < 3.2.6 3.2.6 GHSA-v6x5-cg8r-vv6x

Advisories 1

References