Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit untrusted expression full of unclosed /* comments
-
DeliveryLexer regex re-scans tail for each /* (quadratic)
-
ExploitWorker process stalls seconds-to-minutes
-
ExecutionRepeat to exhaust worker pool
-
ImpactDenial 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (Symfony).
CVSS VectorVendor: Symfony
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
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
Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever
Insufficient verification of payment-claim state in the Sylius e-commerce platform (versions before 2.1.16 and 2.2.9) le
Incorrect authorization in the Sylius Shop API lets anyone holding an order token submit arbitrary payment actions - mos
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated high severity (C
Symfony versions up to 5.4.51 contains a vulnerability that allows attackers to operations being performed on an uninten
Reflected Cross-site scripting (XSS) vulnerability in the web profiler in SensioLabs Symfony 3.3.6 allows remote attacke
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
Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. Rated critical sev
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
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
EUVD-2026-135189
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB