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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| symfony | Twig | > 1.0.0, < 1.44.8; > 2.0.0, < 2.16.1; > 3.0.0, < 3.14.0 | — | No fix listed | CNA |
| — | twig/twig (Packagist) | 1.0.0 to before 1.44.8 | 1.44.8 | Patch available | GHSA-6j75-5wfj-gh66 |
| — | twig/twig (Packagist) | 2.0.0 to before 2.16.1 | 2.16.1 | Patch available | GHSA-6j75-5wfj-gh66 |
| — | twig/twig (Packagist) | 3.12.0 to before 3.14.0 | 3.14.0 | Patch available | GHSA-6j75-5wfj-gh66 |
| — | twig/twig (Packagist) | 3.0.0 to before 3.11.1 | 3.11.1 | Patch available | GHSA-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
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| 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.0 | Vulnerable | symfony |
- 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
- 2026-10-02 Threatist record created from CVE-2024-45411
- 2026-10-03 Alias added: GHSA-6j75-5wfj-gh66
References
Patch 3
Advisory 2
More symfony Twig vulnerabilities
- 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
Sources
- CVE-2024-45411 · CVE Program
- CVE-2024-45411 · NVD
- FIRST EPSS
- GHSA-6j75-5wfj-gh66 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences