Skip to content
Fencer Vulns
high 8.6

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

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

Sources

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.