Skip to content
OpenAdvisories
High · 8.7 CVE-2026-133760 EUVD-2026-135185

Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It

Published Nov 25, 2026 · Updated Nov 25, 2026 · Assigned by Symfony

Description

The fix for CVE-2026-109449 made the expression parser check the nesting level of long expressions. This check exists since Symfony 5.4.54, 6.4.48, 7.4.21 and 8.1.9. The parser builds a ?: b with the node of a used twice, and the check walked every path to every node. With nested short ternaries, the number of paths doubles at each level, so an expression of 256 bytes never finished parsing.

The expression needs no variable and no function. Any code that parses or lints untrusted expressions is affected, including the ExpressionSyntax validation constraint. evaluate() and compile() parse the expression first, so they hang too.

The nesting check now skips the nodes it already checked, so it takes linear time again. evaluate(), compile() and the messages of runtime errors now use the node of a once, so a is evaluated once, as in PHP.

Affected products

VendorProductAffectedFixed
Symfony symfony/expression-language 5.4.54 – < 5.4.57, 6.4.48 – < 6.4.51, 7.4.21 – < 7.4.24, 8.1.9 – < 8.1.12 5.4.57
Symfony symfony/symfony 5.4.54 – < 5.4.57, 6.4.48 – < 6.4.51, 7.4.21 – < 7.4.24, 8.1.9 – < 8.1.12 5.4.57

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 No fix yet —
Debian 13 symfony 6.4.51+dfsg-0+deb13u1 DSA-6668-1
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 —

Advisories 1

References