Skip to content
OpenAdvisories
Medium CVE-2012-6109 EUVD-2017-0248GHSA-h77x-m5q8-c29h

Rack vulnerable to REDoS

Published Mar 1, 2013 · Updated Aug 6, 2024 · Assigned by redhat

Description

lib/rack/multipart.rb in Rack before 1.1.4, 1.2.x before 1.2.6, 1.3.x before 1.3.7, and 1.4.x before 1.4.2 uses an incorrect regular expression, which allows remote attackers to cause a denial of service (infinite loop) via a crafted Content-Disposion header.

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 1.4.1-2.1 —
Debian 13 ruby-rack 1.4.1-2.1 —
Debian 12 ruby-rack 1.4.1-2.1 —
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS ruby-rack 1.5.2-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rack < 1.1.4 1.1.4 GHSA-h77x-m5q8-c29h
RubyGems rack >= 1.2.0, < 1.2.6 1.2.6 GHSA-h77x-m5q8-c29h
RubyGems rack >= 1.3.0, < 1.3.7 1.3.7 GHSA-h77x-m5q8-c29h
RubyGems rack >= 1.4.0, < 1.4.2 1.4.2 GHSA-h77x-m5q8-c29h

References