Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-133760: high-severity vulnerability (CVSS 8.7) in Symfony symfony/expression-language.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 8.7.
Affected products and versions
Symfony symfony/expression-language >= 5.4.54, < 5.4.57; Symfony symfony/expression-language >= 6.4.48, < 6.4.51; Symfony symfony/expression-language >= 7.4.21, < 7.4.24; Symfony symfony/expression-language >= 8.1.9, < 8.1.12; Symfony symfony/symfony >= 5.4.54, < 5.4.57; Symfony symfony/symfony >= 6.4.48, < 6.4.51; Symfony symfony/symfony >= 7.4.21, < 7.4.24; Symfony symfony/symfony >= 8.1.9, < 8.1.12
| Product | Versions | Fixed in |
|---|---|---|
| Symfony symfony/expression-language | >= 5.4.54, < 5.4.57 | — |
| Symfony symfony/expression-language | >= 6.4.48, < 6.4.51 | — |
| Symfony symfony/expression-language | >= 7.4.21, < 7.4.24 | — |
| Symfony symfony/expression-language | >= 8.1.9, < 8.1.12 | — |
| Symfony symfony/symfony | >= 5.4.54, < 5.4.57 | — |
| Symfony symfony/symfony | >= 6.4.48, < 6.4.51 | — |
| Symfony symfony/symfony | >= 7.4.21, < 7.4.24 | — |
| Symfony symfony/symfony | >= 8.1.9, < 8.1.12 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://symfony.com/cve-2026-133760 — CVE Program
- https://github.com/symfony/symfony/security/advisories/GHSA-fvvg-g68p-p6q9 — CVE Program
- https://github.com/symfony/symfony/commit/58e9014c1fd91438e29b92dd67ecf1725faac29b — CVE Program
Weaknesses (CWE): CWE-407
Relevant change history
Published
Preliminary advisory published.