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.
References
| Link | Resource |
|---|---|
| https://github.com/twigphp/Twig/commit/6bfa285e2f98651adb7aa480bf83a741d154f09f | Patch |
| https://github.com/twigphp/Twig/releases/tag/v3.26.0 | Release Notes |
| https://github.com/twigphp/Twig/security/advisories/GHSA-923g-j88x-j34q | Vendor Advisory |
Configurations
History
16 Jul 2026, 03:12
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 6.5 |
| CPE | cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* | |
| References | () https://github.com/twigphp/Twig/commit/6bfa285e2f98651adb7aa480bf83a741d154f09f - Patch | |
| References | () https://github.com/twigphp/Twig/releases/tag/v3.26.0 - Release Notes | |
| References | () https://github.com/twigphp/Twig/security/advisories/GHSA-923g-j88x-j34q - Vendor Advisory | |
| First Time |
Symfony
Symfony twig |
14 Jul 2026, 22:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-07-14 22:16
Updated : 2026-07-16 16:19
NVD link : CVE-2026-46627
Mitre link : CVE-2026-46627
CVE.ORG link : CVE-2026-46627
JSON object : View
Products Affected
symfony
- twig
CWE
CWE-400
Uncontrolled Resource Consumption
