CVE-2026-134791
HIGH 8.7CVSS 4.0Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process
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.
- Published
- 25 Nov 2026
- Last modified
- 30 Nov 2026
- Assigned by
- b5aa5c7f-767d-4597-9c64-3ac08b8711c6
- NVD status
- Awaiting Analysis
- Weakness
- CWE-407
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 (Secondary) | CVSS 4.0 | HIGH 8.7 | 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 |
| CVE List | Symfony | CVSS 4.0 | HIGH 8.7 | 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 |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://packagist.org | symfony/expression-language | >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12 | 7.4.24, 8.1.12 |
| CVE List | https://packagist.org | symfony/symfony | >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12 | 7.4.24, 8.1.12 |
References
- https://github.com/symfony/symfony/commit/e098ffa5936c7c238b9c1a9d5cb82def4573de4f · patch
- https://github.com/symfony/symfony/security/advisories/GHSA-5vf6-gchv-cmcr · vendor-advisory
- https://symfony.com/cve-2026-134791 · vendor-advisory
History
- 30 Nov 2026 15:31 UTC · NVD: status Received → Awaiting Analysis
- 25 Nov 2026 20:55 UTC · CVE List: first stored (published 25 Nov 2026)
- 25 Nov 2026 20:30 UTC · NVD: updated (other details)
- 25 Nov 2026 20:11 UTC · NVD: first stored (published 25 Nov 2026)