StraitOfVuln
Latest / CVE-2026-134791

CVE-2026-134791

HighCVSS 8.7 (v4.0)Awaiting Analysis
CVE.org ↗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.

Details

CVE ID
CVE-2026-134791
Published / updated
25 Nov 2026, 10:17 UTC · last modified 30 Nov 2026, 15:29 UTC
Severity
HIGH
CVSS score
8.7 · 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 · Attack vector: Network
Affected vendor
Symfony
Affected products
symfony/expression-language, symfony/symfony
Affected versions
symfony/expression-language: 7.2.0 to before 7.4.24, 8.0.0 to before 8.1.12
symfony/symfony: 7.2.0 to before 7.4.24, 8.0.0 to before 8.1.12
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
symfony/expression-language 7.4.24, symfony/expression-language 8.1.12, symfony/symfony 7.4.24, symfony/symfony 8.1.12
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.64% probability of exploitation in the next 30 days · 52% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
b5aa5c7f-767d-4597-9c64-3ac08b8711c6