Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Twig versions from 1.0.0 before 1.44.8, from 2.0.0 before 2.16.1, from 3.0.0 before 3.11.1, and from 3.12.0 before 3.14.0 contain a sandbox bypass. An attacker who can supply user-contributed templates could get past the sandbox restrictions, but only when the sandbox is disabled globally, the sandboxed include() call uses a template name, and that template was already loaded earlier outside the sandbox. Upgrade to 1.44.8, 2.16.1, 3.11.1, or 3.14.0 depending on your branch.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.6 | High | 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0085, the 58th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 9 Sept 2024, 17:57 UTC Published by the maintainers as a GitHub repository advisory
- 31 Oct 2026, 14:29 UTC First seen by agentprime
- 31 Oct 2026, 14:29 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-6j75-5wfj-gh66
- OSV: GHSA-6j75-5wfj-gh66
- github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66
- nvd.nist.gov/vuln/detail/CVE-2024-45411
- github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6
- github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de
- github.com/twigphp/Twig/commit/41103dcdc2daab4c83cdd05b5b4fde5b7e41e635
- github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233
- github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-45411.yaml
- github.com/twigphp/Twig
- symfony.com/blog/twig-security-release-possible-sandbox-bypass