# CVE-2024-45411: Twig has a possible sandbox bypass

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.85%, higher than 59% of CVEs (2026-12-01)
- Published: 2024-09-09T18:20:28.363Z
- Modified: 2026-06-17T07:54:09.913Z
- Also known as: GHSA-6j75-5wfj-gh66
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- twigphp Twig: > 1.0.0, < 1.44.8; > 2.0.0, < 2.16.1; > 3.0.0, < 3.14.0
- symfony twig: from 1.0.0 before 1.44.8; from 2.0.0 before 2.16.1; from 3.0.0 before 3.14.0
- twig/twig (Packagist): from 1.0.0 before 1.44.8; from 2.0.0 before 2.16.1; from 3.12.0 before 3.14.0; from 3.0.0 before 3.11.1

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.5 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`

## References

- <https://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66> (vendor-advisory, web)
- <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://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)

## Sources

- CVE List: [CVE-2024-45411](https://www.cve.org/CVERecord?id=CVE-2024-45411), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-6j75-5wfj-gh66](https://github.com/advisories/GHSA-6j75-5wfj-gh66), CC-BY-4.0, modified 2024-10-10
- NVD: [CVE-2024-45411](https://nvd.nist.gov/vuln/detail/CVE-2024-45411), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45411 · Whole record: https://cve.day/CVE-2024-45411.json · Rebuilt by cve.day 2026-11-25T22:58:45.188Z
