Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 20, 2026
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.
| Product | Versions |
|---|---|
| symfony/expression-language Symfony | 5.4.54 to before 5.4.57 Affected6.4.48 to before 6.4.51 Affected7.4.21 to before 7.4.24 Affected8.1.9 to before 8.1.12 Affected |
| symfony/symfony Symfony | 5.4.54 to before 5.4.57 Affected6.4.48 to before 6.4.51 Affected7.4.21 to before 7.4.24 Affected8.1.9 to before 8.1.12 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | Symfony |
Weaknesses
- CWE-407 Inefficient Algorithmic Complexity
References
- CVE-2026-133760Vendor Advisory
- GHSA-fvvg-g68p-p6q9Vendor Advisory
- https://github.com/symfony/symfony/commit/58e9014c1fd91438e29b92dd67ecf1725faac29bPatch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.