CVE-2026-133760
Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It
- CVSS
- 8.7
- EPSS
- 0.64% (p45)
- Published
- 2026-11-25
- Age
- 4d old
- Modified
- 2026-11-25
- Product
- Symfony symfony/expression-language
- Aliases
- GHSA-fvvg-g68p-p6q9
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
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.
Fixed in
5.4.57 · 6.4.51 · 7.4.24 · 8.1.12
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| unknown | symfony/expression-language | >=5.4.54, <5.4.57 | 5.4.57 |
| unknown | symfony/expression-language | >=6.4.48, <6.4.51 | 6.4.51 |
| unknown | symfony/expression-language | >=7.4.21, <7.4.24 | 7.4.24 |
| unknown | symfony/expression-language | >=8.1.9, <8.1.12 | 8.1.12 |
| unknown | symfony/symfony | >=5.4.54, <5.4.57 | 5.4.57 |
| unknown | symfony/symfony | >=6.4.48, <6.4.51 | 6.4.51 |
| unknown | symfony/symfony | >=7.4.21, <7.4.24 | 7.4.24 |
| unknown | symfony/symfony | >=8.1.9, <8.1.12 | 8.1.12 |
Sources
- NVD · first seen 4d ago · NVD terms of use
- OSV · first seen 4d ago · CC-BY 4.0
- CVE List · first seen 4d ago · CVE Terms of Use
References
- https://symfony.com/cve-2026-133760 vendor-advisory
- https://github.com/symfony/symfony/security/advisories/GHSA-fvvg-g68p-p6q9 vendor-advisory
- https://github.com/symfony/symfony/commit/58e9014c1fd91438e29b92dd67ecf1725faac29b patch
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133760.json advisory
- https://github.com/symfony/symfony package
- https://nvd.nist.gov/vuln/detail/CVE-2026-133760 advisory
- https://packagist.org web