CVE-2024-45411 json
Twig has a possible sandbox bypass
published 2024-09-09 2 y ago modified 2026-06-17 4 mo ago also GHSA-6j75-5wfj-gh66 , EUVD-2024-2735
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist twig/twig 1.44.8, 2.16.1, 3.11.1, 3.14.0
- symfony twig 1.44.8, 2.16.1, 3.14.0
- php-twig Debian 12 3.5.1-1+deb12u1
- php-twig Debian 14, Debian 13 3.8.0-4
debian advisories DEBIAN-CVE-2024-45411
- php-twig Ubuntu 24.04 LTS 3.8.0-2ubuntu1
- php-twig Ubuntu Pro 22.04 LTS 3.3.8-2ubuntu4+esm2
- php-twig Ubuntu Pro 24.04 LTS 3.8.0-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-45411
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/twigphp/Twig@11f68e2 commit
- github.com/twigphp/Twig@2102dd1 commit
- github.com/twigphp/Twig@7afa198 commit
- github.com/twigphp/Twig@41103dc commit
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.85% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| GitHub | 3.1 | 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | twig/twig | >=1.0.0, <1.44.8 >=2.0.0, <2.16.1 >=3.12.0, <3.14.0 >=3.0.0, <3.11.1 |
1.44.8 2.16.1 3.14.0 3.11.1 |
Affected products
- twigphp Twig
- symfony twig
Classification
- Weakness
-
- CWE-693 Protection Mechanism Failure
References
-
github.com
/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6
web, patch
-
github.com
/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de
web, patch
-
github.com
/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233
web, patch
-
github.com
/twigphp/Twig/commit/41103dcdc2daab4c83cdd05b5b4fde5b7e41e635
web
-
github.com
/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66
web, vendor-advisory
- lists.debian.org /debian-lts-announce/2024/09/msg00031.html
-
nvd.nist.gov
/vuln/detail/CVE-2024-45411
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-45411.yaml
web
-
github.com
/twigphp/Twig
package
-
symfony.com
/blog/twig-security-release-possible-sandbox-bypass
web
Sources
- CVE List CVE-2024-45411
- GitHub Advisory GHSA-6j75-5wfj-gh66
- NVD CVE-2024-45411
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.