VDB
CVE-2024-45411
CVE-2024-45411
PUBLISHED
CVSS 8.6 HIGH
Twig has a possible sandbox bypass
Reported by github_m · Published September 9, 2024
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.
Risk scores
CVSS 3.1
8.6
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| twigphp | Twig | > 1.0.0, < 1.44.8, > 2.0.0, < 2.16.1, > 3.0.0, < 3.14.0 |
| twigphp | Twig | > 1.0.0, < 1.44.8, > 2.0.0, < 2.16.1, > 3.0.0, < 3.14.0 |
| symfony | twig | 1.0.0, 2.0.0, 3.0.0 |
| twig | twig | 1.0.0, 2.0.0, 3.12.0 |
Timeline
- Sep 9, 2024 CVE Published
- Sep 10, 2024 EPSS Score (30 in total, the first dated here)
- Sep 16, 2024 CVE Updated
- Oct 4, 2024 Coalition ESS Score (11 in total, the first dated here)
- Jan 5, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-45411
vulnetix vdb fixes CVE-2024-45411
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-45411/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66 x_refsource_CONFIRM
- https://github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6 x_refsource_MISC
- https://github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de x_refsource_MISC
- https://github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2024/09/msg00031.html url
- https://nvd.nist.gov/vuln/detail/CVE-2024-45411 advisory
- https://github.com/advisories/GHSA-6j75-5wfj-gh66 advisory
- https://github.com/twigphp/Twig/commit/41103dcdc2daab4c83cdd05b5b4fde5b7e41e635 patch
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-45411.yaml url
- https://github.com/twigphp/Twig url
- https://symfony.com/blog/twig-security-release-possible-sandbox-bypass url