CVE-2026-108082: Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header
Description 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.
Published Oct 27, 2026
Affected packages
symfony/http-foundation
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.0.1, < 6.4.46
- Fixed in
- 6.4.46
- Check
composer show symfony/http-foundation
symfony/http-foundation
- Ecosystem
- Composer (PHP)
- Affected
- >= 7.0.0, < 7.4.19
- Fixed in
- 7.4.19
- Check
composer show symfony/http-foundation
symfony/http-foundation
- Ecosystem
- Composer (PHP)
- Affected
- >= 8.0.0, < 8.1.7
- Fixed in
- 8.1.7
- Check
composer show symfony/http-foundation
symfony/symfony
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.0.1, < 6.4.46
- Fixed in
- 6.4.46
- Check
composer show symfony/symfony
symfony/symfony
- Ecosystem
- Composer (PHP)
- Affected
- >= 7.0.0, < 7.4.19
- Fixed in
- 7.4.19
- Check
composer show symfony/symfony
symfony/symfony
- Ecosystem
- Composer (PHP)
- Affected
- >= 8.0.0, < 8.1.7
- Fixed in
- 8.1.7
- Check
composer show symfony/symfony
symfony/http-foundation
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.1.0, < 5.4.54
- Fixed in
- 5.4.54
- Check
composer show symfony/http-foundation
symfony/symfony
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.1.0, < 5.4.54
- Fixed in
- 5.4.54
- Check
composer show symfony/symfony
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Description
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.
Resolution
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).
Credits
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.
Credited to r3verii, nicolas-grekas, duartecsantos.
References
- https://github.com/symfony/symfony/security/advisories/GHSA-r925-mgvr-h9cc
- https://nvd.nist.gov/vuln/detail/CVE-2026-108082
- https://github.com/symfony/symfony/pull/66048
- https://github.com/symfony/symfony/pull/66491
- https://github.com/symfony/symfony/commit/343a1772ce6ac03e48b228d2d7168d19750e3f36
- https://github.com/symfony/symfony/commit/9ffa802e5d7e9fb8ba95eeefd27e863e83b1baca
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2026-108082.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-108082.yaml
- https://github.com/symfony/symfony/releases/tag/v5.4.54
- https://github.com/symfony/symfony/releases/tag/v6.4.48
- https://github.com/symfony/symfony/releases/tag/v7.4.21
- https://github.com/symfony/symfony/releases/tag/v8.1.9
- https://symfony.com/blog/cve-2026-108082-redos-in-headerutils-split-reachable-through-the-cache-control-request-header
- https://symfony.com/cve-2026-108082
- https://github.com/advisories/GHSA-r925-mgvr-h9cc
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-109413
Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process
high8.7Oct 27, 2026CVE-2026-48489
Symfony: Security Firewall Bypass via failure_forward Subrequest: Unauthenticated Access to access_control-Protected GET Routes
highJun 15, 2026CVE-2026-48736
Symfony: IpUtils::PRIVATE_SUBNETS Omits IPv6 Transition Forms (6to4, NAT64, Teredo, IPv4-compatible): SSRF Bypass in NoPrivateNetworkHttpClient
medium6.3Jun 15, 2026CVE-2026-48747
Symfony: Mailomat Mailer Webhook Parser Reads the HMAC Algorithm from the Request: Signature Algorithm Downgrade
mediumJun 15, 2026CVE-2026-48760
Symfony: HtmlSanitizer URL Parser Deny Gates Underinclusive: Percent-Encoded BiDi Marks and Unicode Whitespace Bypass Visual-Spoofing Defense
mediumJun 15, 2026CVE-2026-48761
Symfony: HtmlSanitizer UrlAttributeSanitizer Misses URL Attributes
medium5.3Jun 15, 2026
