CVE-2024-45411: Twig is a template language for PHP
Affects twigSource GCVE Database
Not known to be exploited · CVSS 8.6 High · fixed in 3.3.8-2ubuntu4+esm2 : patch twig soon.
Data as of 24 Nov 2026, 19:39 UTC
- Patch
- Available – fixed in 3.3.8-2ubuntu4+esm2, 3.8.0-2ubuntu1, 3.8.0-2ubuntu0.1~esm1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 9 Sep 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade the Ubuntu php-twig to 3.3.8-2ubuntu4+esm2 (package) or 3.8.0-2ubuntu1 (package) or 3.8.0-2ubuntu0.1~esm1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSphp-twigpkg:deb/ubuntu/php-twig?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 24.04 LTSphp-twigpkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSphp-twigpkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSphp-twigpkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTStwigpkg:deb/ubuntu/twig?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Ubuntu Pro 16.04 LTStwigpkg:deb/ubuntu/twig?arch=source&distro=esm-apps/xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-45411 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-45411 (opens in a new tab)
- github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66 (opens in a new tab)
- github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6 (opens in a new tab)
- github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de (opens in a new tab)
- github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233 (opens in a new tab)
- ubuntu.com/security/notices/USN-7456-1 (opens in a new tab)