Nested short ternaries make the Symfony expression parser hang
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-407.
Summary
Symfony's expression language packages, symfony/expression-language and symfony/symfony, from 5.4.54 before 5.4.57, 6.4.48 before 6.4.51, 7.4.21 before 7.4.24 and 8.1.9 before 8.1.12 are affected. The nesting check in the expression parser walks every path through nested short ternaries, so its running time grows exponentially (CWE-407). An unauthenticated remote attacker can make code that parses untrusted expressions hang with an expression of only 256 bytes.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| symfony | symfony/expression-language | 5.4.54 to before 5.4.57; 6.4.48 to before 6.4.51; 7.4.21 to before 7.4.24; 8.1.9 to before 8.1.12 | 5.4.57, 6.4.51, 7.4.24, 8.1.12 | Patch available | CNA |
| symfony | symfony/symfony | 5.4.54 to before 5.4.57; 6.4.48 to before 6.4.51; 7.4.21 to before 7.4.24; 8.1.9 to before 8.1.12 | 5.4.57, 6.4.51, 7.4.24, 8.1.12 | Patch available | CNA |
- symfony/expression-language Vendorsymfony Affected 5.4.54 to before 5.4.57; 6.4.48 to before 6.4.51; 7.4.21 to before 7.4.24; 8.1.9 to before 8.1.12 Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12 Patch available CNA
- symfony/symfony Vendorsymfony Affected 5.4.54 to before 5.4.57; 6.4.48 to before 6.4.51; 7.4.21 to before 7.4.24; 8.1.9 to before 8.1.12 Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12 Patch available CNA
Remediation
Upgrade symfony/expression-language and symfony/symfony to 5.4.57, 6.4.51, 7.4.24 or 8.1.12, matching the installed release branch.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA symfony/expression-language (Symfony) Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12
- Fix · CNA symfony/symfony (Symfony) Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
symfony/symfony 5.4.57, 6.4.51 and 2 more versions
13 records Highest priority Priority MEDIUM 2 MEDIUM, 11 LOW
Other records, highest priority first
- TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHPPriority MEDIUM 45
- TI-2026-98153 HttpClient lets a Proxy header choose the proxy under the CLI SAPIPriority LOW 37
- TI-2026-98145 Credentials leak to other origins on redirect in Symfony HTTP clientPriority LOW 36
Timeline
- 2026-11-25 Threatist record created from CVE-2026-133760
- 2026-11-25 CISA SSVC decision points changed
References
More symfony vulnerabilities
- TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
- TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
- TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
- TI-2022-08704 Symfony storing cookie headers in HttpCache CVSS 3.1HIGH 8.8
- TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHP CVSS 4.0HIGH 8.7
- TI-2026-35851 Incorrect authorization in symfony CVSS 4.0HIGH 8.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences