# GHSA-FVVG-G68P-P6Q9: Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It

- Database: GitHub
- Severity: CVSS 8.7 (High)
- Published: 2026-11-25
- Modified: 2026-11-25

## Tracked as

- [CVE-2026-133760](https://cve.now/CVE-2026-133760.md): Symfony Expression Language denial of service in expression parser via ternaries

## Affected versions

- symfony/expression-language (Packagist): from 5.4.54, fixed in 5.4.57
- symfony/symfony (Packagist): from 5.4.54, fixed in 5.4.57
- symfony/expression-language (Packagist): from 6.4.48, fixed in 6.4.51
- symfony/symfony (Packagist): from 6.4.48, fixed in 6.4.51
- symfony/expression-language (Packagist): from 7.4.21, fixed in 7.4.24
- symfony/symfony (Packagist): from 7.4.21, fixed in 7.4.24
- symfony/expression-language (Packagist): from 8.1.9, fixed in 8.1.12
- symfony/symfony (Packagist): from 8.1.9, fixed in 8.1.12

## Description

### 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.

### Resolution

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.

The patch for this issue is available [here](https://github.com/symfony/symfony/commit/58e9014c1fd91438e29b92dd67ecf1725faac29b) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).

### Credits

We would like to thank [Jack Worman](https://github.com/jack-worman) for reporting the issue and Nicolas Grekas for providing the fix.

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-fvvg-g68p-p6q9

Page: https://cve.now/GHSA-FVVG-G68P-P6Q9

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
