Skip to main content

Symfony ExpressionLanguage EUVDEUVD-2026-135189

| CVE-2026-134791 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-11-25 Symfony
8.7
CVSS 4.0 · Vendor: Symfony
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit untrusted expression full of unclosed /* comments
  2. Delivery
    Lexer regex re-scans tail for each /* (quadratic)
  3. Exploit
    Worker process stalls seconds-to-minutes
  4. Execution
    Repeat to exhaust worker pool
  5. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Exploitation requires that the application pass attacker-controlled input through the ExpressionLanguage lexer - specifically any code path that lints or parses untrusted expressions, including the ExpressionSyntax validation constraint. The malicious input is an expression containing one or more unclosed /* comment openers; larger payloads amplify the quadratic blowup. Notably, a Length constraint on the same value does NOT mitigate it because the validator runs both constraints and the lexer executes before the parser's nesting limit. Limiting factors: applications that never expose expression parsing/linting to untrusted input are not affected, and only Symfony 7.2 onward (which introduced expression comments) is vulnerable - versions before 7.2.0 and fixed versions 7.4.24 / 8.1.12 (and 8.2 via forward-port) are not. No authentication or user interaction is required for the attacker beyond submitting the expression (PR:N/UI:N).

Impact

This is an algorithmic-complexity denial-of-service flaw (CWE-407) in Symfony's ExpressionLanguage lexer, not a code-execution or data-exposure issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a remotely reachable, low-complexity, unauthenticated trigger, and the impact is cleanly availability-only (VC:N/VI:N/VA:H), which is consistent with the mechanism: an unclosed /* comment forced the lexer's regex to re-scan the remaining expression for every /*, making lexing quadratic (reportedly 9-11s to lint 192KB, 34s for 96KB without PCRE JIT). The 8.7 base score is high, but the real-world priority is tempered: no EPSS probability is provided, the flaw is NOT in CISA KEV, and no dedicated public exploit reference is supplied, so there is no evidence of active exploitation. The vuln.today decision label is 'this_week' (not act_now/emergency), matching a serious-but-not-emergency DoS. The key caveat the raw CVSS hides is that PR:N/UI:N reflects the attacker's position only IF the application actually feeds attacker-controlled expressions into the lexer (e.g. via the ExpressionSyntax validation constraint); applications that never parse untrusted expressions are not exposed regardless of version. Net: a genuine availability risk worth patching promptly for anyone validating or parsing untrusted expressions, but not a drop-everything event in the absence of KEV/EPSS signals.

Exploit ScenarioDerived

An attacker submits an input that the application validates or parses as a Symfony expression - for example a form field guarded by the ExpressionSyntax constraint - containing many unclosed /* sequences (e.g. tens of kilobytes of '/* '). The lexer re-scans the remainder of the string for each /*, so a single request pins a worker for seconds to tens of seconds, and repeated requests exhaust the worker pool for a denial of service. No dedicated public exploit was supplied, though the fix commit publicly includes a test (str_repeat('/* ', 10000)) that demonstrates the pathological input.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

A denial-of-service bug in Symfony's ExpressionLanguage component lets an attacker who can submit an expression for linting or parsing hold a PHP process for seconds to minutes. Input containing many unclosed /* comment openers forces the lexer to rescan the remainder of the expression for each opener, so lexing time grows quadratically; the reporter measured 9-11 seconds for 192 KB and 34 seconds for 96 KB without PCRE JIT. Only Symfony 7.2.0 and later are affected (comments were introduced in 7.2), and fixed versions 7.4.24, 8.1.12 and 8.2 are available; no public exploit code was identified at time of analysis, and no KEV listing or EPSS signal was provided.

RemediationAI

Vendor-released patch: upgrade symfony/expression-language and symfony/symfony to 7.4.24 (for 7.2/7.3/7.4 branches) or 8.1.12 (for 8.x, with 8.2 receiving the forward-ported fix), applying commit e098ffa5936c7c238b9c1a9d5cb82def4573de4f as referenced in https://symfony.com/cve-2026-134791 and https://github.com/symfony/symfony/security/advisories/GHSA-5vf6-gchv-cmcr. Because the lexer executes before the parser's nesting limit, adding a Length constraint alongside ExpressionSyntax does not mitigate the issue - the validator still runs both constraints - so do not rely on input-length limits as a workaround. Applications that cannot upgrade immediately should stop passing untrusted input to ExpressionLanguage linting/parsing (for example, do not apply the ExpressionSyntax constraint to user-supplied values) and, where an expression must be evaluated, constrain it to a fixed allowlist of trusted, server-side expressions until the patched version is deployed.

Affected VersionsENISA

symfony/expression-language 7.2.0 <7.4.24
symfony/expression-language 8.0.0 <8.1.12
symfony/symfony 7.2.0 <7.4.24
symfony/symfony 8.0.0 <8.1.12

Affected Packages

euvd symfony_expression_language fix: 7.4.24, 8.1.12
euvd symfony_symfony fix: 7.4.24, 8.1.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Symfony ExpressionLanguage added expression comments in 7.2. The lexer, which runs before the parser and therefore before the parser's nesting limit, located the end of a comment with a PCRE pattern anchored at the cursor ({/\*.*?\*/}A). When a /* had no closing */, the pattern scanned to the end of the input and failed, after which the lexer advanced one character and tried again, restarting the scan from each subsequent position. This produces quadratic (CWE-407 algorithmic complexity) behaviour in the size of the untrusted expression. The fix replaces the regex with a direct check for the / and * bytes at the cursor and a strpos() search for the closing */, and throws a SyntaxError immediately when none is found - behaviour that only rejects expressions that were already invalid. The affected packages are composer/symfony/expression-language and composer/symfony/symfony (CPE cpe:2.3:a:symfony:symfony/expression-language and cpe:2.3:a:symfony:symfony) from 7.2.0 onward.

Know when Symfony gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Symfony) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Remotely reachable low-complexity trigger with no attacker privileges or interaction; impact is denial of service only, hence C:N/I:N/A:H and scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Symfony).

CVSS VectorVendor: Symfony

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-407: Inefficient Algorithmic Complexity - a quadratic-time (O(n²)) lexer loop in the Symfony ExpressionLanguage component.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-134791 is a high-severity denial-of-service vulnerability in Symfony's ExpressionLanguage component affecting versions 7.2.0 and later. An attacker who can submit expressions for linting or parsing can hold PHP processes for seconds to minutes, potentially disrupting application availability and degrading service for end users. Leadership should prioritize remediation because this vulnerability can directly impact business continuity and customer experience.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 43% exploitable
Prevalence
High
Symfony is a very widely deployed enterprise PHP framework
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2015-4050 MEDIUM POC
4.3 Jun 02

FragmentListener in the HttpKernel component in Symfony 2.3.19 through 2.3.28, 2.4.9 through 2.4.10, 2.5.4 through 2.5.1

CVE-2019-10910 CRITICAL POC
9.8 May 16

In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, when servic

CVE-2018-13818 CRITICAL POC
9.8 Jul 10

Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever

CVE-2026-100872 HIGH POC
8.7 Sep 27

Insufficient verification of payment-claim state in the Sylius e-commerce platform (versions before 2.1.16 and 2.2.9) le

CVE-2026-100869 HIGH POC
8.2 Sep 27

Incorrect authorization in the Sylius Shop API lets anyone holding an order token submit arbitrary payment actions - mos

CVE-2025-64500 HIGH POC
7.3 Nov 12

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated high severity (C

CVE-2026-24739 MEDIUM POC
6.3 Jan 28

Symfony versions up to 5.4.51 contains a vulnerability that allows attackers to operations being performed on an uninten

CVE-2018-12040 MEDIUM POC
6.1 Jun 13

Reflected Cross-site scripting (XSS) vulnerability in the web profiler in SensioLabs Symfony 3.3.6 allows remote attacke

CVE-2016-2403 CRITICAL
9.8 Feb 07

Symfony before 2.8.6 and 3.x before 3.0.6 allows remote attackers to bypass authentication by logging in with an empty p

CVE-2024-51736 CRITICAL
9.8 Nov 06

Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. Rated critical sev

CVE-2019-18889 CRITICAL
9.8 Nov 21

An issue was discovered in Symfony 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7. Rated critical s

CVE-2019-11325 CRITICAL
9.8 Nov 21

An issue was discovered in Symfony before 4.2.12 and 4.3.x before 4.3.8. Rated critical severity (CVSS 9.8), this vulner

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy