CVE-2026-46640

HIGH CVSS 4.0: 8.7 EPSS 0.64%
Updated Oct 25, 2026
Symfony
Parameter Value
CVSS 8.7 (HIGH)
Affected Versions 3.15.0 — 3.26.0
Fixed In 3.26.0
Type CWE-94 (Code Injection)
Vendor Symfony
Public PoC No

Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.(<string>) and import-alias dynamic attribute syntax can concatenate an attacker-controlled string into a MacroReferenceExpression name without identifier validation, causing raw PHP to be emitted into the generated template source and executed at template-load time. This issue is fixed in version 3.26.0.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Symfony Twig
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
3.15.0 3.26.0