CVE-2024-45411
HIGH8.5EPSS 0.14%php-twig - security update
Published: 9/9/2024Modified: 5/27/2026
Description
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.
Affected packages (4)
- Debian/php-twigfrom 0, < 2.14.3-1+deb11u3
- Debian/php-twigfrom 0, < 2.14.3-1+deb11u3
- Debian/php-twigfrom 0, < 3.5.1-1+deb12u1
- Packagist/twig/twig>= 1.0.0, < 1.44.8
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H |
| osv | CVSS 3.1 | HIGH8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
References (10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-45411
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-45411
- PATCHhttps://github.com/twigphp/Twig
- WEBhttps://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-45411.yaml
- WEBhttps://github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6
- WEBhttps://github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de
- WEBhttps://github.com/twigphp/Twig/commit/41103dcdc2daab4c83cdd05b5b4fde5b7e41e635
- WEBhttps://github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233
- WEBhttps://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66
- WEBhttps://symfony.com/blog/twig-security-release-possible-sandbox-bypass