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

Twigphp Twig

Twig: Sandbox property and method bypass via object-destructuring assignment

Twig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling property and method policy checks and allowing an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. This issue is fixed in version 3.26.0.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.1high · scored by CNA · CWE-693
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

twigphp Twig
  • >= 3.24.0, < 3.26.0

Fixed in 3.26.0

Mitigation

Upgrade Twig to 3.26.0 or later.

References

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.

No PoC repositories found yet.