Resource exhaustion in Symfony Twig
CVE-2026-46627
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.
Vulnerability class: DoS (Denial of Service)
EPSS: 0.005 (43.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Symfony Twig
- Twigphp Twig — versions < 3.26.0
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC)
- security-advisories@github.com (x_refsource_MISC, Release Notes)
Frequently asked questions
- What is CVE-2026-46627?
- CVE-2026-46627 is a medium-severity vulnerability in Symfony Twig, classified under Uncontrolled Resource Consumption. CVSS score: 6.5/10. Published 2026-07-14.
- How severe is CVE-2026-46627?
- Medium severity. CVSS v3 base score is 6.5 out of 10.