PoC Monitor
← All CVEs
CVE-2026-46640published 14 Jul 2026 21:22 UTCData: JSON · API

Twigphp Twig

Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation

Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.(<string>) and import-alias dynamic attribute syntax can concatenate an attacker-controlled string into a MacroReferenceExpression name without identifier validation, causing raw PHP to be emitted into the generated template source and executed at template-load time. This issue is fixed in version 3.26.0.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by NVD · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

twigphp Twig
  • >= 3.15.0, < 3.26.0

Fixed in 3.26.0

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published14 Jul 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

1 suspicious or fake

Suspicious or fake 1
RepositoryCreatedStarsAssessment
vladko312/extras 14 Oct 2024 −1.7 y 18 Fake

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.