Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It

Summary

CVECVE-2026-133760
StatePUBLISHED
AssignerSymfony
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-25 10:17:13 UTC
Updated2026-11-25 10:17:13 UTC
DescriptionThe 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


VersionSourceTypeScoreSeverityVector
4.0b5aa5c7f-767d-4597-9c64-3ac08b8711c6Secondary8.7HIGHCVSS: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.0CNACVSS8.7HIGHCVSS: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
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Confidentiality
None
Integrity
None
Availability
High
Sub Conf.
None
Sub Integrity
None
Sub Availability
None

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report