ZeroDay Brief
CVE-2026-46634

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 SourcePolicy…

CVSS
9.8Critical
Chance of exploitation (EPSS)
0.62%
Published
Jul 14, 2026
In the news
Not yet
Vendor advisory More from this vendor

What to do

A critical security flaw in Symfony Twig that can be attacked over the network without logging in. No attacks are reported yet, but patch it soon.

Action: Apply the vendor's update or follow its advisory.

Affected versions
Twig
>= 3.9.0, < 3.26.0

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.

CWE-693

Affected products

Get alerts for these →

Timeline 3

Latest change: Tenable Cloud Security plugin 480755: Echo: matomo-5: security update to 5.14.3+e2 (Nov 18, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 3

  • github.com Patch /twigphp/Twig/commit/1cde8f2b62463f85d47995fc25f8241cb409d915
  • github.com Vendor Advisory /twigphp/Twig/security/advisories/GHSA-24x9-r6q4-q93w
  • github.com /twigphp/Twig/releases/tag/v3.26.0

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”