๐Ÿ” CVE Alert

CVE-2026-134791

UNKNOWN 0.0

Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process

CVSS Score
0.0
EPSS Score
0.9%
EPSS Percentile
57th

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.

CWE CWE-407
Vendor symfony
Product symfony/expression-language
Published Nov 25, 2026
Last Updated Nov 25, 2026
Stay Ahead of the Next One

Get instant alerts for symfony symfony/expression-language

Be the first to know when new unknown vulnerabilities affecting symfony symfony/expression-language are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

Symfony / symfony/expression-language
7.2.0 < 7.4.24 8.0.0 < 8.1.12
Symfony / symfony/symfony
7.2.0 < 7.4.24 8.0.0 < 8.1.12

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
symfony.com: https://symfony.com/cve-2026-134791 github.com: https://github.com/symfony/symfony/security/advisories/GHSA-5vf6-gchv-cmcr github.com: https://github.com/symfony/symfony/commit/e098ffa5936c7c238b9c1a9d5cb82def4573de4f

Credits

Nicolas Grekas