Read the docs
TI-2024-30460 Aliases CVE-2024-45411GHSA-6j75-5wfj-gh66

Twig has a possible sandbox bypass

Priority MEDIUM 41CWE-693Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-693.

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00849 58th percentileScored 2026-11-07
Fix Fixed twig/twig (Packagist): 1.44.8, 2.16.1, 3.14.0 +1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfonyTwig> 1.0.0, < 1.44.8; > 2.0.0, < 2.16.1; > 3.0.0, < 3.14.0—No fix listedCNA
—twig/twig (Packagist)1.0.0 to before 1.44.81.44.8Patch availableGHSA-6j75-5wfj-gh66
—twig/twig (Packagist)2.0.0 to before 2.16.12.16.1Patch availableGHSA-6j75-5wfj-gh66
—twig/twig (Packagist)3.12.0 to before 3.14.03.14.0Patch availableGHSA-6j75-5wfj-gh66
—twig/twig (Packagist)3.0.0 to before 3.11.13.11.1Patch availableGHSA-6j75-5wfj-gh66
  • Twig Vendorsymfony Affected > 1.0.0, < 1.44.8; > 2.0.0, < 2.16.1; > 3.0.0, < 3.14.0 Fixed in — No fix listed CNA
  • twig/twig (Packagist) Vendor— Affected 1.0.0 to before 1.44.8 Fixed in 1.44.8 Patch available GHSA-6j75-5wfj-gh66
  • twig/twig (Packagist) Vendor— Affected 2.0.0 to before 2.16.1 Fixed in 2.16.1 Patch available GHSA-6j75-5wfj-gh66
  • twig/twig (Packagist) Vendor— Affected 3.12.0 to before 3.14.0 Fixed in 3.14.0 Patch available GHSA-6j75-5wfj-gh66
  • twig/twig (Packagist) Vendor— Affected 3.0.0 to before 3.11.1 Fixed in 3.11.1 Patch available GHSA-6j75-5wfj-gh66

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*1.0.0 to before 1.44.8; 2.0.0 to before 2.16.1; 3.0.0 to before 3.14.0Vulnerablesymfony
  • cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* Versions 1.0.0 to before 1.44.8; 2.0.0 to before 2.16.1; 3.0.0 to before 3.14.0 Vulnerable ·symfony

Remediation

  • Fix · GHSA-6j75-5wfj-gh66 twig/twig (Packagist) Fixed in 1.44.8 Advisory →
  • Fix · GHSA-6j75-5wfj-gh66 twig/twig (Packagist) Fixed in 2.16.1 Advisory →
  • Fix · GHSA-6j75-5wfj-gh66 twig/twig (Packagist) Fixed in 3.14.0 Advisory →
  • Fix · GHSA-6j75-5wfj-gh66 twig/twig (Packagist) Fixed in 3.11.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-45411
  2. 2026-10-03 Alias added: GHSA-6j75-5wfj-gh66

References

  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2022-18637 Twig may load a template outside a configured directory when using the filesystem loader CVSS 3.1HIGH 7.5
  • TI-2026-34292 Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation CVSS 4.0HIGH 8.7
  • TI-2026-34285 Twig: PHP code injection via `{% use %}` template name CVSS 4.0HIGH 8.7
See all 24 →

Sources