CVE-2026-46638

HIGH

Twig < 3.26.0 - Sandbox SecurityPolicy Bypass via Cached Include

Title source: manual
STIX 2.1

Description

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.

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