Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
High 8.7CVE-2026-133760

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

Published 25/11/2026 · Updated 25/11/2026 · symfony/expression-language

Original 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 and versions

Symfony symfony/expression-language5.4.54 – < 5.4.57 · 6.4.48 – < 6.4.51 · 7.4.21 – < 7.4.24 · 8.1.9 – < 8.1.12Fixed in: 5.4.57 · 6.4.51 · 7.4.24 · 8.1.12
Symfony symfony/symfony5.4.54 – < 5.4.57 · 6.4.48 – < 6.4.51 · 7.4.21 – < 7.4.24 · 8.1.9 – < 8.1.12Fixed in: 5.4.57 · 6.4.51 · 7.4.24 · 8.1.12

CVSS vector, explained

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Attack vector
Network (from the internet)
Attack complexity
Low
Attack requirements
None
Privileges required
None (no login)
User interaction
Not required
Confidentiality
None
Integrity
None
Availability
High impact

Weakness type (CWE)

  • CWE-407 Inefficient Algorithmic Complexity

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.