CVE-2026-133760: Symfony Symfony/expression-Language
High severity, CVSS 8.7. EPSS: 0.6% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Symfony Symfony/expression-Language, from 5.4.54, before 5.4.57: fixed in 5.4.57
- Symfony Symfony/expression-Language, from 6.4.48, before 6.4.51: fixed in 6.4.51
- Symfony Symfony/expression-Language, from 7.4.21, before 7.4.24: fixed in 7.4.24
- Symfony Symfony/expression-Language, from 8.1.9, before 8.1.12: fixed in 8.1.12
- Symfony Symfony/symfony, from 5.4.54, before 5.4.57: fixed in 5.4.57
- Symfony Symfony/symfony, from 6.4.48, before 6.4.51: fixed in 6.4.51
- Symfony Symfony/symfony, from 7.4.21, before 7.4.24: fixed in 7.4.24
- Symfony Symfony/symfony, from 8.1.9, before 8.1.12: fixed in 8.1.12
Affected products
- Symfony Symfony/expression-Language: from 5.4.54, before 5.4.57 (fixed in 5.4.57); from 6.4.48, before 6.4.51 (fixed in 6.4.51); from 7.4.21, before 7.4.24 (fixed in 7.4.24); from 8.1.9, before 8.1.12 (fixed in 8.1.12)
- Symfony Symfony/symfony: from 5.4.54, before 5.4.57 (fixed in 5.4.57); from 6.4.48, before 6.4.51 (fixed in 6.4.51); from 7.4.21, before 7.4.24 (fixed in 7.4.24); from 8.1.9, before 8.1.12 (fixed in 8.1.12)
Published 2026-11-25. Last modified 2026-11-25.