Twig has a possible sandbox bypass (twigphp Twig)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.85 % · percentile 58 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-693 — Protection Mechanism Failure
References
- https://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66
- https://github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6
- https://github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de
- https://github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233
- https://lists.debian.org/debian-lts-announce/2024/09/msg00031.html
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | GitHub_M |
| CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | NVD · security-advisories@github.com (Secondary) |
| CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-6j75-5wfj-gh66 — Twig has a possible sandbox bypass
European references
- ENISA EUVD · EUVD-2024-2735
- GCVE · GCVE-0-2024-45411
CERT-FR advisories
- CERTFR-2025-AVI-0836 — Multiples vulnérabilités dans les produits Tenable · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*≥ 1.0.0 < 1.44.8cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*≥ 2.0.0 < 2.16.1cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*≥ 3.0.0 < 3.14.0
Affected products
| Product | Versions |
|---|---|
| twigphp · Twig | affected > 1.0.0, < 1.44.8 ; affected > 2.0.0, < 2.16.1 ; affected > 3.0.0, < 3.14.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |