CVE-2024-45411
HIGH 8.6CVSS 3.1Twig has a possible sandbox bypass
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.
- Published
- 9 Sep 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-693
- Also known as
- GHSA-6j75-5wfj-gh66
- Sources
- NVDJSONOSV GHSA-6j75-5wfj-gh66JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | symfony | twigcpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
>= 1.0.0, < 1.44.8 | 1.44.8 |
| NVD | symfony | twigcpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.16.1 | 2.16.1 |
| NVD | symfony | twigcpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.14.0 | 3.14.0 |
| OSV | Packagist | twig/twig | >= 1.0.0, < 1.44.8 | 1.44.8 |
| OSV | Packagist | twig/twig | >= 2.0.0, < 2.16.1 | 2.16.1 |
| OSV | Packagist | twig/twig | >= 3.12.0, < 3.14.0 | 3.14.0 |
| OSV | Packagist | twig/twig | >= 3.0.0, < 3.11.1 | 3.11.1 |
References
- https://github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6 · Patch, WEB
- https://github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de · Patch, WEB
- https://github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233 · Patch, WEB
- https://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66 · Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/09/msg00031.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-45411 · ADVISORY
- https://github.com/twigphp/Twig/commit/41103dcdc2daab4c83cdd05b5b4fde5b7e41e635 · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-45411.yaml · WEB
- https://github.com/twigphp/Twig · PACKAGE
- https://symfony.com/blog/twig-security-release-possible-sandbox-bypass · WEB
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 9 Sep 2024)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 9 Sep 2024)