Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-46633
VULNERABILITY

CVE-2026-46633

Common Vulnerabilities and Exposures record

HIGH

Summary

Twig is a template language for PHP. Starting in 1.15.1 and 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.

Risk

CVSS
8.7
Severity
HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Timeline

Published
Jul 14, 2026 22:16
Modified
Nov 4, 2026 00:17
Last observed
Nov 3, 2026 20:00

CWE

CWE-94

Affected product identifiers

cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*

References