Advisory record · GHSA-6j75-5wfj-gh66

Twig has a possible sandbox bypass

CVSS 8.6 HighEPSS 0.0085 · 58th percentile

Published by the GitHub Advisory Database at 9 Sept 2024, 20:19 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
twig/twigPackagist>=1.0.0, <1.44.8 || >=2.0.0, <2.16.1 || >=3.12.0, <3.14.0 || >=3.0.0, <3.11.11.44.8, 2.16.1, 3.14.0, 3.11.1
Identifiers
GHSA-6j75-5wfj-gh66 · CVE-2024-45411 · PKSA-6319-ffpf-gx66
Weakness (CWE)
CWE-693
Published
9 Sept 2024
Updated
10 Oct 2024

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.

Written 4 Nov 2026.

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

ScoreRatingCVSSVectorSource
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

  1. 9 Sept 2024, 17:57 UTC Published by the maintainers as a GitHub repository advisory
  2. 31 Oct 2026, 14:29 UTC First seen by agentprime
  3. 31 Oct 2026, 14:29 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.