Inefficient Algorithmic Complexity Affecting symfony/expression-language package, versions >=7.2.0, <7.4.24>=8.0.0, <8.1.12


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.64% (46th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SYMFONYEXPRESSIONLANGUAGE-23184440
  • published1 Dec 2026
  • disclosed25 Nov 2026
  • creditNicolas Grekas

Introduced: 25 Nov 2026

NewCVE-2026-134791  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade symfony/expression-language to version 7.4.24, 8.1.12 or higher.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the Lexer::tokenize() method in Lexer.php, when processing expressions containing unclosed /* comments. The lexer used a regular expression to locate the end of a comment, and when a /* was never closed, the regex scanned the entire remainder of the expression before the lexer advanced by one character and repeated the scan for each subsequent /*. This quadratic behavior allows an attacker to supply a large expression with many unclosed comments, causing the process to hang for an extended period and exhausting CPU resources.

CVSS Base Scores

version 4.0
version 3.1