CVE-2026-46638
HIGHTwig < 3.26.0 - Sandbox SecurityPolicy Bypass via Cached Include
Title source: manualDescription
Twig is a template language for PHP. Prior to 3.26.0, {% sandbox %}{% include %} can include a template that was previously loaded outside the sandbox without re-invoking checkSecurity(), allowing the cached template to use tags, filters, and functions that should have been denied by SecurityPolicy::checkSecurity(). This issue is fixed in version 3.26.0.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/twigphp/Twig/security/advisories/GHSA-7fxw-r6jv-74c8
X_Refsource_Misc x_refsource_misc
https://github.com/twigphp/Twig/commit/819c6a89fe0f261b8555c4f4d5e27d31984223ea
X_Refsource_Misc x_refsource_misc
https://github.com/twigphp/Twig/releases/tag/v3.26.0
Scores
CVSS v3
8.1
EPSS
0.0027
EPSS Percentile
18.3%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-693
Status
published
Products (2)
symfony/twig
< 3.26.0
twigphp/Twig
< 3.26.0
Published
Jul 14, 2026
Tracked Since
Jul 15, 2026