Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It
Summary
| CVE | CVE-2026-133760 |
|---|---|
| State | PUBLISHED |
| Assigner | Symfony |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-25 10:17:13 UTC |
| Updated | 2026-11-25 10:17:13 UTC |
| 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. |
Risk And Classification
Primary CVSS: v4.0 8.7 HIGH from b5aa5c7f-767d-4597-9c64-3ac08b8711c6
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Problem Types: CWE-407 | CWE-407 CWE-407 Inefficient Algorithmic Complexity
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 | Secondary | 8.7 | HIGH | 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/E:X/C... |
| 4.0 | CNA | CVSS | 8.7 | HIGH | 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 |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowAttack Requirements
NonePrivileges Required
NoneUser Interaction
NoneConfidentiality
NoneIntegrity
NoneAvailability
HighSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Symfony | Symfony/expression-language | affected 5.4.54 5.4.57 semver | Not specified |
| CNA | Symfony | Symfony/expression-language | affected 6.4.48 6.4.51 semver | Not specified |
| CNA | Symfony | Symfony/expression-language | affected 7.4.21 7.4.24 semver | Not specified |
| CNA | Symfony | Symfony/expression-language | affected 8.1.9 8.1.12 semver | Not specified |
| CNA | Symfony | Symfony/symfony | affected 5.4.54 5.4.57 semver | Not specified |
| CNA | Symfony | Symfony/symfony | affected 6.4.48 6.4.51 semver | Not specified |
| CNA | Symfony | Symfony/symfony | affected 7.4.21 7.4.24 semver | Not specified |
| CNA | Symfony | Symfony/symfony | affected 8.1.9 8.1.12 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/symfony/symfony/security/advisories/GHSA-fvvg-g68p-p6q9 | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 | github.com | |
| symfony.com/cve-2026-133760 | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 | symfony.com | |
| github.com/symfony/symfony/commit/58e9014c1fd91438e29b92dd67ecf1725faac29b | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Jack Worman (en)
CNA: Nicolas Grekas (en)
There are currently no legacy QID mappings associated with this CVE.