CVE-2024-45411: high-severity vulnerability in twigphp Twig
Twig has a possible sandbox bypass
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 8.6epss 0.8%
Twig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sandbox restrictions. This vulnerability is fixed in 1.44.8, 2.16.1, and 3.14.0.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected products
twigphp · TwigRelated CVEs — twigphp Twig
In the same product, most dangerous first.
CVE-2022-23614HIGHCode injection in TwigEPSS 8.2%CVE-2022-39261HIGHTwig may load a template outside a configured directory when using the filesystem loaderEPSS 3.2%CVE-2026-46633HIGHTwig: PHP code injection via `{% use %}` template nameEPSS 0.8%CVE-2026-24425HIGHTwig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterfaceEPSS 0.8%CVE-2026-46640HIGHTwig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilationEPSS 0.6%CVE-2026-46634HIGHTwig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template nameEPSS 0.6%
References
https://github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6https://github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7dehttps://github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233https://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66https://lists.debian.org/debian-lts-announce/2024/09/msg00031.html