Back to feed
20Track

symfony/expression-language: Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic…

symfony/expression-language · CVE-2026-134791 ETK-2026-5487 EUVD-2026-135189 GHSA-5VF6-GCHV-CMCR
0 news outlets0 CERTs and agencies0 research labs

Assessment: Track

SSVC decision points: exploitation none, automatable yes, technical impact partial, deployment low.

What is it?

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.

Evidence

No coverage recorded yet.

Exploitation

  • Exploit code published (not verified by us)
  • Exploited in the wild (confirmed by a source)
  • Listed as known exploited (CISA KEV)
CVSS
8.7
EPSS
0.9%
First seen
13 h ago
Status
corroborated

All Symfony vulnerabilities