CVE-2026-134791

8.7High

Published Nov 25, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

8.7CVSS

High

0CVSS v4.010

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on availability
Weakness
CWE-407

What an attacker gets

Unauthenticated attackers can cause a denial of service by submitting unclosed comment blocks in expressions. This triggers catastrophic backtracking in the lexer, consuming excessive CPU resources.

Root cause

The lexer used an inefficient regular expression to find the end of comments, leading to exponential time complexity when processing unclosed comment blocks.

Affected versions

Symfony 7.2.0 through 7.2.2

CVSS v4.0 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Fix & remediation

Upgrade to Symfony 7.2.3 or later. If you cannot upgrade, avoid parsing untrusted user-supplied expressions.

remediation — bash
$ composer update symfony/symfony

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-134791

More fully triaged vulnerabilities you may want to check next.