CVE-2026-46634: Vulnerability in Symfony Twig

Critical. Twig is a template language for PHP. From 3.9.0 until 3.26.0, template_from_string() compiles an inner template under a synthesized __string_template__<hash> name that can fall outside a SourcePolicyInterface sandbox decision, allowing a sandboxed template that can call template_from_string and include to render an inner template without security policy enforcement. This issue is fixed in version 3.26.0.

Packagist, CWE-693

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-24x9-r6q4-q93w
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-693
Published
21 May 2026
Last change
24 Oct 2026
Ecosystem
Packagist

Affected products

Affected versions and the first fixed release

  • Symfony Twig From 3.9.0 before 3.26.0. Fixed in 3.26.0

Affected packages

Vulnerable version ranges and fixed releases

  • twig/twig Packagist, Affected from 3.9.0 before 3.26.0. Fixed in 3.26.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related