Skip to content
OpenAdvisories
High · 8.7 CVE-2026-108082 EUVD-2026-102102GHSA-r925-mgvr-h9cc

Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header

Published Oct 15, 2026 · Updated Oct 15, 2026 · Assigned by Checkmarx

Description

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to versions 5.4.54, 6.4.46, 7.4.19, and 8.1.7, 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.

This issue affects symfony/http-foundation v4.1.0-BETA1 through v5.4.53, v6.0.0-BETA1 through v6.4.45, v7.0.0-BETA1 through v7.4.18, and v8.0.0-BETA1 through v8.1.6.

Affected products

VendorProductAffectedFixed
sensiolabs symfony — —

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 symfony 7.4.19+dfsg-1 —
Debian 13 symfony 6.4.49+dfsg-0+deb13u1 —
Debian 12 symfony No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 symfony No fix yet —
Ubuntu 26.04 LTS symfony No fix yet —
Ubuntu 16.04 LTS symfony No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS symfony No fix yet —
Ubuntu Pro 22.04 LTS symfony No fix yet —
Ubuntu Pro 20.04 LTS symfony No fix yet —
Ubuntu Pro 18.04 LTS symfony No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist symfony/http-foundation >= 6.0.1, < 6.4.46 6.4.46 GHSA-r925-mgvr-h9cc
Packagist symfony/http-foundation >= 7.0.0, < 7.4.19 7.4.19 GHSA-r925-mgvr-h9cc
Packagist symfony/http-foundation >= 8.0.0, < 8.1.7 8.1.7 GHSA-r925-mgvr-h9cc
Packagist symfony/http-foundation >= 4.1.0, < 5.4.54 5.4.54 GHSA-r925-mgvr-h9cc
Packagist symfony/symfony >= 6.0.1, < 6.4.46 6.4.46 GHSA-r925-mgvr-h9cc
Packagist symfony/symfony >= 7.0.0, < 7.4.19 7.4.19 GHSA-r925-mgvr-h9cc
Packagist symfony/symfony >= 8.0.0, < 8.1.7 8.1.7 GHSA-r925-mgvr-h9cc
Packagist symfony/symfony >= 4.1.0, < 5.4.54 5.4.54 GHSA-r925-mgvr-h9cc

Advisories 1

References