CVE-2026-46638 Details
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.
A vulnerability exists in Twig, a template language for PHP, prior to version 3.26.0. The issue arises in the `{% sandbox %}{% include %}` functionality, where a template can be included that was previously loaded outside of the sandbox without properly re-checking its security. This oversight allows the included template to utilize tags, filters, and functions that should have been restricted by the sandbox's security policy. The vulnerability can be exploited by an attacker who authors the included template, granting access to all filters, functions, and tags available in the environment, bypassing the intended sandbox restrictions.
Users can upgrade to Twig version 3.26.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-693 | Protection Mechanism Failure | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| symfony twig | < 3.26.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 16, 2026 | Initial Analysis | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | New CVE Received | [email protected] |