CVE-2026-133760
published high CVSS 4.0 · 8.7Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Symfony | — | symfony/expression-language5.4.54 to < 5.4.57 · 6.4.48 to < 6.4.51 · 7.4.21 to < 7.4.24 · 8.1.9 to < 8.1.12 · Other versions: unaffected | Affected | Not stated | Symfony |
| Symfony | — | symfony/symfony5.4.54 to < 5.4.57 · 6.4.48 to < 6.4.51 · 7.4.21 to < 7.4.24 · 8.1.9 to < 8.1.12 · Other versions: unaffected | Affected | Not stated | Symfony |
| Debian | trixie | symfony | Advisory build | 6.4.51+dfsg-0+deb13u1 | DSA-6668-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- Symfony · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Symfony | symfony/expression-language | 5.4.54 to < 5.4.57 (affected · semver)6.4.48 to < 6.4.51 (affected · semver)7.4.21 to < 7.4.24 (affected · semver)8.1.9 to < 8.1.12 (affected · semver)Default: unaffected | Symfony · cna |
| Symfony | symfony/symfony | 5.4.54 to < 5.4.57 (affected · semver)6.4.48 to < 6.4.51 (affected · semver)7.4.21 to < 7.4.24 (affected · semver)8.1.9 to < 8.1.12 (affected · semver)Default: unaffected | Symfony · cna |
Weaknesses
1- CWE-407 CWE-407 Inefficient Algorithmic Complexity
References
3- https://github.com/symfony/symfony/commit/58e9014c1fd91438e29b92dd67ecf1725faac29b
- GHSA-fvvg-g68p-p6q9 https://github.com/symfony/symfony/security/advisories/GHSA-fvvg-g68p-p6q9
- CVE-2026-133760 https://symfony.com/cve-2026-133760
Provider assertions
2Symfony · cna
Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c24207cbae829553807b4bb06652278317e466b8ededbd0285cd2c879e934fc9
- Ingested
- 25 Nov 2026, 20:13:30 UTC
- Source record
- Official CVE record