Loading advisory.
Loading advisory.
Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)
A simple HTTP request with lots of blank characters in the content-type header:
Published 2024-02-28 22:57 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| rack | RubyGems | >= 3.0.0, < 3.0.9.1 >= 0.4, < 2.2.8.1 versions 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.4.1, 3.0.4.2, 3.0.5, 3.0.6, 3.0.6.1, 3.0.7, 3.0.8, 3.0.9, 0.4.0, 0.9.0, 0.9.1, 1.0.0, 1.0.1, 1.1.0, 1.1.1 and 98 more | 3.0.9.1, 2.2.8.1 | gem install rack -v 3.0.9.1gem install rack -v 2.2.8.1 |
module Rack
class MediaType
SPLIT_PATTERN = %r{\s*[;,]\s*}The above regexp is subject to ReDos. 50K blank characters as a prefix to the header will take over 10s to split.
A simple HTTP request with lots of blank characters in the content-type header:
request["Content-Type"] = (" " * 50_000) + "a,"It's a very easy to craft ReDoS. Like all ReDoS the impact is debatable.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.354 on 2026-11-24 to 0.022 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.354 | first score | v2026.06.15 |
| 2026-11-26 | 0.022 | 0.354 | v2026.06.15 |