CVE-2026-134791
Description
Since Symfony 7.2, expressions can contain comments. The lexer used a regular expression to find the end of a comment. When a /* was never closed, this regular expression scanned the rest of the expression, and the lexer then went on with the next character. So each /* scanned the rest of the expression again. Linting 192 KB of /* took 9 to 11 seconds, and 96 KB took 34 seconds without PCRE JIT. The lexer runs before the parser and its nesting limit. Any code that lints or parses untrusted expressions is affected, including the ExpressionSyntax validation constraint. A Length constraint on the same value doesn't help, since the validator runs both constraints. The lexer now uses strpos() to find the end of a comment, and a comment that is never closed throws a SyntaxError. Such expressions were already invalid. Lexing takes linear time again.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | symfony |
Not affected | — |
| sid | symfony |
Fixed | 7.4.24+dfsg-1 |
| forky | symfony |
Affected | — |
| bookworm | symfony |
Not affected | — |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | symfony/symfony | >=7.2.0,<7.3.0|>=7.3.0,<7.4.0|>=7.4.0,<7.4.24|>=8.0.0,<8.1.0|>=8.1.0,<8.1.12 | |
| Packagist | symfony/expression-language | >=7.2.0,<7.3.0|>=7.3.0,<7.4.0|>=7.4.0,<7.4.24|>=8.0.0,<8.1.0|>=8.1.0,<8.1.12 | |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| symfony | symfony_expression-language | {"startIncluding":"7.2.0","endExcluding":"7.4.24"} | 7.4.24 |
| symfony | symfony_expression-language | {"startIncluding":"8.0.0","endExcluding":"8.1.12"} | 8.1.12 |
| symfony | symfony_symfony | {"startIncluding":"7.2.0","endExcluding":"7.4.24"} | 7.4.24 |
| symfony | symfony_symfony | {"startIncluding":"8.0.0","endExcluding":"8.1.12"} | 8.1.12 |
References
CWEs
CWE-407
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.