CVE-2026-46627 Details
Description
Twig is a template language for PHP. Prior to 3.26.0, the Twig sandbox does not prevent a template from consuming CPU, memory, or wall-clock time, even under the strictest allow-list, allowing untrusted templates to cause resource exhaustion. This issue is addressed in version 3.26.0 by documenting that the sandbox does not protect against resource exhaustion.
A resource exhaustion vulnerability has been identified in Twig, a template language for PHP. Prior to version 3.26.0, the Twig sandbox did not prevent untrusted templates from consuming CPU, memory, or wall-clock time, even under the strictest allow-list. This allowed untrusted templates to cause resource exhaustion. The issue is now addressed in version 3.26.0, which includes documentation clarifying that the sandbox does not protect against resource exhaustion.
Users should upgrade to Twig version 3.26.0 or later. The Twig documentation recommends containing untrusted templates at the process level rather than the template-engine level, and suggests using PHP's 'memory_limit' and 'max_execution_time' settings, isolated worker processes, or OS-level limits, depending on the context.
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 16, 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-400 | Uncontrolled Resource Consumption | [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 | CVE Modified | CISA-ADP |
| Jul 16, 2026 | Initial Analysis | [email protected] |
| Jul 14, 2026 | New CVE Received | [email protected] |