Skip to main content
VulnerabilityPublished Updated

CVE-2026-46634: twigphp Twig · Protection Mechanism Failure

Affects twigphp TwigSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.7 High : upgrade to 3.26.0 soon.

Data as of 26 Nov 2026, 14:59 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.26.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.

What to do

Upgrade Twig and twig/twig to 3.26.0.

Affected software

ProductAffectedFixed in
twigphpTwigAffected
  • >=3.9.0 <3.26.0
Fixed in
  • 3.26.0
Packagisttwig/twigpkg:composer/twig/twigOther threatsAffected
  • v3.9.0 – v3.25.0
  • >=3.9.0 <3.26.0
32 affected builds
Fixed in
  • 3.26.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Twig to version 3.26.0 or later, where this vulnerability is fixed. Until upgraded, avoid using untrusted input with template_from_string() in sandboxed environments.

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.

References

Community reviews

Loading reviews…