All vulnerabilities

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
Weakness
Inefficient algorithmic complexity (CWE-407)
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.

From symfony/symfony's security advisory.

Affected software

SoftwareAffected versions
SymfonyServers and applications · github:symfony/symfony
  • From 7.2.0 before 7.4.24
  • From 8.0.0 before 8.1.12
symfony/expression-languagePackagist · osv:Packagist:symfony/expression-language
  • From 7.2.0 before 7.4.24
  • From 8.0.0 before 8.1.12
SymfonyPackagist · osv:Packagist:symfony/symfony
  • From 7.2.0 before 7.4.24
  • From 8.0.0 before 8.1.12

About Symfony

PHP web application framework for MVC applications

From Wikidata, CC0 1.0.
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

ReleaseLatestSecurity fixes
8.18.1.11Until 31 Jan 2027
8.08.0.16Ended 31 Jul 2026
7.4 (LTS)LTS7.4.23Until 30 Nov 2029
7.37.3.11Ended 31 Jan 2026
7.27.2.9Ended 31 Jul 2025
7.17.1.11Ended 31 Jan 2025

From endoflife.date.

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
Search the list for symfony/expression-language

References