CVE-2024-45411
published high CVSS 3.1 · 8.6Twig has a possible sandbox bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| twigphp | — | Twig> 1.0.0, < 1.44.8 · > 2.0.0, < 2.16.1 · > 3.0.0, < 3.14.0 | Affected | Not stated | GitHub_M |
| symfony | — | twig1.0.0 to < 1.44.8 · 2.0.0 to < 2.16.1 · 3.0.0 to < 3.14.0 · Other versions: unaffected | Affected | Not stated | CISA-ADP |
| Debian | bookworm | php-twig | Advisory build | 3.5.1-1+deb12u1 | DSA-5771-1 |
| Ubuntu | jammy | php-twig | Advisory build | 3.3.8-2ubuntu4+esm2 | USN-7456-1 |
| Debian | bullseye | php-twig | Advisory build | 2.14.3-1+deb11u3 | DLA-3888-1 |
| Ubuntu | jammy | php-twig-cache-extra | Advisory build | 3.3.8-2ubuntu4+esm2 | USN-7456-1 |
| Ubuntu | jammy | php-twig-cssinliner-extra | Advisory build | 3.3.8-2ubuntu4+esm2 | USN-7456-1 |
| Ubuntu | jammy | php-twig-extra-bundle | Advisory build | 3.3.8-2ubuntu4+esm2 | USN-7456-1 |
Show 23 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | php-twig-html-extra | Advisory build | 3.3.8-2ubuntu4+esm2 | USN-7456-1 |
| Ubuntu | jammy | php-twig-inky-extra | Advisory build | 3.3.8-2ubuntu4+esm2 | USN-7456-1 |
| Ubuntu | jammy | php-twig-intl-extra | Advisory build | 3.3.8-2ubuntu4+esm2 | USN-7456-1 |
| Ubuntu | jammy | php-twig-markdown-extra | Advisory build | 3.3.8-2ubuntu4+esm2 | USN-7456-1 |
| Ubuntu | jammy | php-twig-string-extra | Advisory build | 3.3.8-2ubuntu4+esm2 | USN-7456-1 |
| Ubuntu | noble | php-twig | Advisory build | 3.8.0-2ubuntu0.1~esm1 | USN-7456-1 |
| Ubuntu | noble | php-twig | Advisory build | 3.8.0-2ubuntu1 | USN-7549-1 |
| Ubuntu | noble | php-twig-cache-extra | Advisory build | 3.8.0-2ubuntu0.1~esm1 | USN-7456-1 |
| Ubuntu | noble | php-twig-cache-extra | Advisory build | 3.8.0-2ubuntu1 | USN-7549-1 |
| Ubuntu | noble | php-twig-cssinliner-extra | Advisory build | 3.8.0-2ubuntu0.1~esm1 | USN-7456-1 |
| Ubuntu | noble | php-twig-cssinliner-extra | Advisory build | 3.8.0-2ubuntu1 | USN-7549-1 |
| Ubuntu | noble | php-twig-extra-bundle | Advisory build | 3.8.0-2ubuntu0.1~esm1 | USN-7456-1 |
| Ubuntu | noble | php-twig-extra-bundle | Advisory build | 3.8.0-2ubuntu1 | USN-7549-1 |
| Ubuntu | noble | php-twig-html-extra | Advisory build | 3.8.0-2ubuntu0.1~esm1 | USN-7456-1 |
| Ubuntu | noble | php-twig-html-extra | Advisory build | 3.8.0-2ubuntu1 | USN-7549-1 |
| Ubuntu | noble | php-twig-inky-extra | Advisory build | 3.8.0-2ubuntu0.1~esm1 | USN-7456-1 |
| Ubuntu | noble | php-twig-inky-extra | Advisory build | 3.8.0-2ubuntu1 | USN-7549-1 |
| Ubuntu | noble | php-twig-intl-extra | Advisory build | 3.8.0-2ubuntu0.1~esm1 | USN-7456-1 |
| Ubuntu | noble | php-twig-intl-extra | Advisory build | 3.8.0-2ubuntu1 | USN-7549-1 |
| Ubuntu | noble | php-twig-markdown-extra | Advisory build | 3.8.0-2ubuntu0.1~esm1 | USN-7456-1 |
| Ubuntu | noble | php-twig-markdown-extra | Advisory build | 3.8.0-2ubuntu1 | USN-7549-1 |
| Ubuntu | noble | php-twig-string-extra | Advisory build | 3.8.0-2ubuntu0.1~esm1 | USN-7456-1 |
| Ubuntu | noble | php-twig-string-extra | Advisory build | 3.8.0-2ubuntu1 | USN-7549-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| twigphp | Twig | > 1.0.0, < 1.44.8 (affected)> 2.0.0, < 2.16.1 (affected)> 3.0.0, < 3.14.0 (affected) | GitHub_M · cna |
| symfony | twig | 1.0.0 to < 1.44.8 (affected · custom)2.0.0 to < 2.16.1 (affected · custom)3.0.0 to < 3.14.0 (affected · custom)Default: unaffected | CISA-ADP · adp |
Weaknesses
1- CWE-693 CWE-693: Protection Mechanism Failure
References
5- https://github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6
- https://github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de
- https://github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233
- https://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66
- https://lists.debian.org/debian-lts-announce/2024/09/msg00031.html
Provider assertions
3GitHub_M · cna
Twig has a possible sandbox bypass
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d2e56a0f3f87930e2e606903e2ce263fca4cd8d1dfc220686eb9cd5d97ad661b
- Ingested
- 23 Sep 2026, 08:27:47 UTC
- Source record
- Official CVE record