cve.bz

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

8.7 highFix available

High (8.7) in symfony.

On this page
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.

Severity

CVSS 4.0

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
CWE
CWE-407 Inefficient Algorithmic Complexity
Published
Assigned by
Symfony (CNA)
NVD analysis
Not in the NVD yet
Record from
the CVE List, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-133760 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-133760?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-133760?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-133760 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
symfony/expression-languagefrom 5.4.54 before 5.4.57
symfony/expression-languagefrom 6.4.48 before 6.4.51
symfony/expression-languagefrom 7.4.21 before 7.4.24
symfony/expression-languagefrom 8.1.9 before 8.1.12
symfony/symfonyfrom 5.4.54 before 5.4.57
symfony/symfonyfrom 6.4.48 before 6.4.51
symfony/symfonyfrom 7.4.21 before 7.4.24
symfony/symfonyfrom 8.1.9 before 8.1.12

References

Check your stackJSON