Packagist · Servers and applications
CVE-2026-134791
Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process
- Severity
- High 8.7
- Published
- 25 Nov 2026
- Last changed
- 25 Nov 2026
- Added to UpHeron
- 25 Nov 2026
- Fixed in
- 7.4.24, 8.1.12
- Exploit chance
- 0.9% in the next 30 daysHigher than 57% of CVEs. EPSS by FIRST, 25 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
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- Also known as
- GHSA-5vf6-gchv-cmcr
- Sources
- CVE Program, Project advisories (GitHub)
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.
Affected software
| Software | Affected versions |
|---|---|
SymfonyServers and applications · github:symfony/symfony |
|
symfony/expression-languagePackagist · osv:Packagist:symfony/expression-language |
|
SymfonyPackagist · osv:Packagist:symfony/symfony |
|
About Symfony
PHP web application framework for MVC applications
- Developers who used it in the past year
- 4%Stack Overflow Developer Survey 2025, 2025
- Monthly downloads (Packagist)
- 315,437Packagist, 22 Nov 2026
- Total downloads (Packagist)
- 88,509,675Packagist, 22 Nov 2026
- GitHub stars
- 31,457GitHub, 22 Nov 2026
- Forks
- 9,960GitHub, 22 Nov 2026
- Latest release
- v8.2.0-BETA2GitHub, 22 Nov 2026
- Released
- 13 Nov 2026GitHub
- Developer
- SensioLabsWikidata
- License
- MIT LicenseWikidata
- Written in
- PHPWikidata
- First released
- 22 Oct 2005Wikidata
- First published on GitHub
- 4 Jan 2010GitHub
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 8.1 | 8.1.11 | Until 31 Jan 2027 |
| 8.0 | 8.0.16 | Ended 31 Jul 2026 |
| 7.4 (LTS)LTS | 7.4.23 | Until 30 Nov 2029 |
| 7.3 | 7.3.11 | Ended 31 Jan 2026 |
| 7.2 | 7.2.9 | Ended 31 Jul 2025 |
| 7.1 | 7.1.11 | Ended 31 Jan 2025 |
From endoflife.date.
Vulnerabilities in Symfony
- In our list
- 95
- Published in the last 12 months
- 77
- Critical, last 12 months
- 1
- High, last 12 months
- 24
- Known exploited
- 0
- CVE-2026-134792HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in HTTP Workers That Run Under the CLI SAPIHigh 8.3 25 Nov 2026
- CVE-2026-134790Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652Medium 5.3 25 Nov 2026
- CVE-2026-133762Without APP_RUNTIME_MODE, HTTP Workers Running Under the CLI SAPI Return Full Exception Dumps in ProductionMedium 6.0 25 Nov 2026
- CVE-2026-133761CsvEncoder Nests Rows Once per Key Separator of a Header, Letting a Small CSV Payload Crash PHPHigh 8.7 25 Nov 2026
- CVE-2026-133760Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang ItHigh 8.7 25 Nov 2026
- CVE-2026-133759Doctrine Remember-Me Token Provider Accepts Outdated Tokens Under the Series of Their Copy, Also After LogoutMedium 6.3 25 Nov 2026
About symfony/expression-language
- Monthly downloads (Packagist)
- 8,907,698Packagist, 25 Nov 2026
- Total downloads (Packagist)
- 256,919,261Packagist, 25 Nov 2026
Vulnerabilities in symfony/expression-language
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-133760Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang ItHigh 8.7 25 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-134791
- GitHub Advisory Database https://github.com/advisories/GHSA-5vf6-gchv-cmcr
- github.com https://github.com/symfony/symfony/security/advisories/GHSA-5vf6-gchv-cmcr