Symfony expression-languageの脆弱性、細工した式で処理が止まるおそれ
Summary
入れ子になった短縮三項演算子を含む式を解析させると、式の解析処理が終わらなくなるおそれがあります。影響するのはsymfony/expression-languageとsymfony/symfonyの5.4.54から5.4.56、6.4.48から6.4.50、7.4.21から7.4.23、8.1.9から8.1.11で、5.4.57、6.4.51、7.4.24、8.1.12に修正版が公開されています。外部から受け取った式を扱う場合は、速やかに修正版へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
入れ子になった短縮三項演算子を含む式を解析させると、式の解析処理が終わらなくなるおそれがあります。影響するのはsymfony/expression-languageとsymfony/symfonyの5.4.54から5.4.56、6.4.48から6.4.50、7.4.21から7.4.23、8.1.9から8.1.11で、5.4.57、6.4.51、7.4.24、8.1.12に修正版が公開されています。外部から受け取った式を扱う場合は、速やかに修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Symfonysymfony/expression-language |
≥ 5.4.54, < 5.4.57→ 5.4.57 ≥ 6.4.48, < 6.4.51→ 6.4.51 ≥ 7.4.21, < 7.4.24→ 7.4.24 ≥ 8.1.9, < 8.1.12→ 8.1.12 |
5.4.57 6.4.51 7.4.24 8.1.12 |
| Symfonysymfony/symfony |
≥ 5.4.54, < 5.4.57→ 5.4.57 ≥ 6.4.48, < 6.4.51→ 6.4.51 ≥ 7.4.21, < 7.4.24→ 7.4.24 ≥ 8.1.9, < 8.1.12→ 8.1.12 |
5.4.57 6.4.51 7.4.24 8.1.12 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-133760 symfony Fix available
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory symfony.com
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web packagist.org