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

Published Nov 25, 2026
·
Updated

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.

Affected Software

1 affected component
Symfony Symfony ExpressionLanguage>=5.4.54, >=6.4.48, >=7.4.21, >=8.1.9

Event History

Nov 25, 2026
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
DescriptionWeakness

Frequently Asked Questions

1

What input does an attacker need to supply?

An attacker only needs to provide an untrusted expression containing nested short ternaries. The expression does not require variables or functions, and a 256-byte expression can cause parsing not to finish.

2

Which application paths can be used to trigger the hang?

Any code that parses or lints untrusted expressions is affected. This includes the ExpressionSyntax validation constraint, as well as evaluate() and compile(), because both parse the expression before processing it.

3

What can be done if the fix cannot be applied immediately?

Do not parse or lint expressions controlled by untrusted users until the fix is available. Size alone is not a sufficient safeguard, because the issue can be triggered with a 256-byte expression.

4

Are applications affected merely by using the ExpressionLanguage component?

The exposed cases described are code paths that parse or lint untrusted expressions. The data specifically identifies the ExpressionSyntax validation constraint as an affected path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203