CVE-2026-46633

HIGH CVSS 4.0: 8.7 EPSS 0.77%
Updated Oct 25, 2026
Symfony
Parameter Value
CVSS 8.7 (HIGH)
Affected Versions before 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. Prior to 3.26.0, Compiler::string() does not escape single quotes when a template name from a {% use %} tag is placed inside a PHP single-quoted string literal, allowing a crafted template name to terminate the string and inject arbitrary PHP expressions into the compiled cache file. 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.26.0