Loading advisory.
Loading advisory.
Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header
HeaderUtils::split() parsed header values with a pattern whose token alternative also matched whitespace, followed by a (?<!\s) lookbehind.
Published 2026-10-15 14:46 UTC · Modified 2026-10-27 19:15 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 |
|---|---|---|---|---|
| symfony/http-foundation | Packagist | >= 6.0.1, < 6.4.46 >= 7.0.0, < 7.4.19 >= 8.0.0, < 8.1.7 >= 4.1.0, < 5.4.54 versions v6.0.1, v6.0.10, v6.0.11, v6.0.12, v6.0.13, v6.0.14, v6.0.15, v6.0.16, v6.0.17, v6.0.19, v6.0.2, v6.0.20, v6.0.3, v6.0.5, v6.0.6, v6.0.7, v6.0.8, v6.0.9, v6.1.0, v6.1.0-BETA1 and 352 more | 6.4.46, 7.4.19, 8.1.7, 5.4.54 | composer require 'symfony/http-foundation:>=6.4.46'composer require 'symfony/http-foundation:>=7.4.19'composer require 'symfony/http-foundation:>=8.1.7'composer require 'symfony/http-foundation:>=5.4.54' |
| symfony/symfony | Packagist | >= 6.0.1, < 6.4.46 >= 7.0.0, < 7.4.19 >= 8.0.0, < 8.1.7 >= 4.1.0, < 5.4.54 versions v6.0.1, v6.0.10, v6.0.11, v6.0.12, v6.0.13, v6.0.14, v6.0.15, v6.0.16, v6.0.17, v6.0.18, v6.0.19, v6.0.2, v6.0.20, v6.0.3, v6.0.4, v6.0.5, v6.0.6, v6.0.7, v6.0.8, v6.0.9 and 440 more | 6.4.46, 7.4.19, 8.1.7, 5.4.54 | composer require 'symfony/symfony:>=6.4.46'composer require 'symfony/symfony:>=7.4.19'composer require 'symfony/symfony:>=8.1.7'composer require 'symfony/symfony:>=5.4.54' |
HeaderUtils::split() parsed header values with a pattern whose token alternative also matched whitespace, followed by a (?<!\s) lookbehind. A run of whitespace placed before a separator could be divided among the iterations of the enclosing repetition in exponentially many ways, and the engine tried all of them before settling. HeaderBag calls it for the Cache-Control header whenever a Request is built, so any application handling HTTP requests is reachable, with no authentication.
A single request carrying such a header costs close to a second of CPU (813 ms for a run of 17 spaces in an 8 KB header on PHP 8.5, doubling with each extra space). From 18 spaces on, preg_match_all() gives up at pcre.backtrack_limit and split() returns an empty array, so every directive of the header is silently dropped.
The pattern now consumes whitespace only when more of the value follows it, so a value can no longer end on whitespace, nothing has to be given back, and every quantifier is possessive. The first release of this fix broke splitting on a whitespace separator: HeaderUtils::split('foo bar', ' ') returned a single value in 6.4.46 to 6.4.47, 7.4.19 to 7.4.20 and 8.1.7 to 8.1.8. Whitespace characters used as separators are now left out of the whitespace branch, which 6.4.48, 7.4.21 and 8.1.9 contain.
The patches for this issue are available here for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).
Symfony would like to thank r3verii for reporting the issue and Nicolas Grekas for providing the fix.
Symfony would also like to thank Bruno Dias from Checkmarx for his help getting a CVE assigned.
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.005 on 2026-11-24 to 0.007 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.007 | 0.005 | v2026.06.15 |