CVE-2026-46634

Critical

Description

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.

SeverityCritical
CVSS9.8
Exploit probability—
ProductSymfony Twig
PublishedJul 14, 2026
First seenJul 14, 2026
Weakness typeCWE-693CWE-693

How to fix

Update
  • symfony twig3.26.0 or later
  • twig/twig3.26.0 or later

Affected products

ProductAffected versionsFixed in
symfony twig3.9.0 ≤ v < 3.26.03.26.0
twig/twigPackagist3.9.0 ≤ v < 3.26.03.26.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.