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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | ruby-rack | 1.5.2-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- https://bugzilla.redhat.com/show_bug.cgi?id=895277
- https://github.com/rack/rack/commit/c9f65df37a151821eb88ddd1dc404b83e52c52d5
- http://rack.github.com/
- https://github.com/rack/rack/blob/master/README.rdoc
- https://groups.google.com/forum/#%21msg/rack-devel/1w4_fWEgTdI/XAkSNHjtdTsJ
- RHSA-2013:0548 vendor-advisory
- RHSA-2013:0544 vendor-advisory