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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/twigphp/Twig/commit/6bfa285e2f98651adb7aa480bf83a741d154f09f Patch
- https://github.com/twigphp/Twig/security/advisories/GHSA-923g-j88x-j34q Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.1 · symfonyNVD modified 2026-10-24 22:10
Affected (CPE criteria) 1
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*