CVE-2026-133760 in expression language
Summary
by MITRE • 11/25/2026
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.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/25/2026
CVE-2016-109449 represents a significant denial-of-service vulnerability within the Symfony ExpressionLanguage component, specifically affecting versions 5.4 through 8.1 prior to their respective patch releases of 5.4.54, 6.4.48, 7.4.21, and 8.1.9. The root cause lies in an algorithmic inefficiency within the expression parser when handling nested short ternary operators. While a security check was introduced to prevent excessive nesting levels, the implementation flaw caused the parser to traverse every possible path through the abstract syntax tree for each node rather than caching or skipping previously visited nodes. This resulted in exponential time complexity relative to the depth of the nesting, effectively creating a quadratic or worse performance degradation that could be exploited by an attacker providing maliciously crafted input.
The technical mechanism of this vulnerability relies on the structure of ternary expressions. When parsing nested short ternaries such as condition ? value : condition2 ? value2 : default, the parser generates nodes where intermediate conditions are referenced multiple times in the resulting tree structure. The flawed nesting check iterated through every path to reach each node instance independently. Because the number of paths doubles with each additional level of nesting, even a relatively small expression payload of approximately 256 bytes could cause the parsing process to hang indefinitely or consume excessive CPU resources until it was terminated by system limits. This behavior classifies as an algorithmic complexity vulnerability, aligning closely with CWE-400: Uncontrolled Resource Consumption and specifically illustrating how improper handling of recursive structures can lead to resource exhaustion.
The operational impact is severe for any application that utilizes the Symfony ExpressionLanguage component to parse or lint untrusted user input. This includes applications using the ExpressionSyntax validation constraint in forms, as well as services calling evaluate() or compile() methods on expressions derived from external sources. Since these functions perform parsing before execution, an attacker can trigger a denial-of-service condition without needing to execute arbitrary code or inject variables and functions into the expression. The vulnerability allows for remote exploitation via HTTP requests containing specially crafted query parameters, form data, or API payloads that target endpoints processing dynamic expressions. This impacts availability, one of the three core pillars of information security confidentiality, integrity, and availability, potentially leading to service outages and increased infrastructure costs due to resource saturation.
Mitigation strategies primarily involve upgrading to the patched versions mentioned above which correct the parsing logic by ensuring linear time complexity through node caching or skipping already-checked nodes. For applications unable to upgrade immediately, defensive programming practices should be implemented to limit the length of expression strings accepted from untrusted sources and to enforce strict input validation before passing data to the ExpressionLanguage component. Additionally, implementing timeouts on long-running processes and monitoring for abnormal CPU spikes associated with parsing operations can help detect and mitigate active exploitation attempts. Security teams should also review their use cases involving dynamic expressions to ensure that no user-controlled data is directly passed into expression parsers without rigorous sanitization or length restrictions, thereby reducing the attack surface for this class of algorithmic complexity vulnerabilities aligned with MITRE ATT&CK techniques related to resource exhaustion such as T1496: Resource Hijacking.