Live threats

All CVEs / Symfony

CVE-2026-46633Symfony Twig

High 8.7

Priority
52
CVSS 4.0
8.7
EPSS
—
Auth required
Yes
Published
Jul 14, 2026
Updated
Nov 4, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Twig.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist twig/twig ≥ 1.15.1 < 3.26.0 3.26.0 composer require "twig/twig:^3.26.0"

Per OSV / GitHub Advisories (GHSA-7p85-w9px-jpjp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
symfonytwig< 3.26.0

Official sources

References

Links published by the sources. Open them with care.