CVE-2024-45411
Symfony Twig vulnerability
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 products
Twig. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Symfony Twig runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66 · Vendor Advisory
- github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6 · Patch
- github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de · Patch
- github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233 · Patch
- lists.debian.org/debian-lts-announce/2024/09/msg00031.html
- nvd.nist.gov/vuln/detail/CVE-2024-45411
- github.com/twigphp/Twig/commit/41103dcdc2daab4c83cdd05b5b4fde5b7e41e635
- github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-45411.yaml
- nvd.nist.gov/vuln/detail/CVE-2024-45411
- cve.org/CVERecord?id=CVE-2024-45411
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.