Vulnerability · Published Sep 9, 2024 · Assigned by GitHub_M
CVE-2024-45411Twig has a possible sandbox bypass
High 8.6
In plain English
A high-severity security flaw in Twig from twigphp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.6High
Exploit odds (30 days)0.8%top 41.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | php-twig | 3.5.1-1+deb12u1 | DEBIAN-CVE-2024-45411 |
| Debian:12 | php-twig | 3.5.1-1+deb12u1 | DSA-5771-1 |
| Debian:13 | php-twig | 3.8.0-4 | DEBIAN-CVE-2024-45411 |
| Debian:14 | php-twig | 3.8.0-4 | DEBIAN-CVE-2024-45411 |
| Packagist | twig/twig | 3.11.1 | GHSA-6j75-5wfj-gh66 |
| Packagist | twig/twig | 3.14.0 | GHSA-6j75-5wfj-gh66 |
| Packagist | twig/twig | 2.16.1 | GHSA-6j75-5wfj-gh66 |
| Packagist | twig/twig | 1.44.8 | GHSA-6j75-5wfj-gh66 |
| Ubuntu:24.04:LTS | php-twig | 3.8.0-2ubuntu1 | UBUNTU-CVE-2024-45411 |
| Ubuntu:24.04:LTS | php-twig | 3.8.0-2ubuntu1 | USN-7549-1 |
Affected products (as reported)
Weakness: CWE-693 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66 x_refsource_CONFIRM
- https://github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6 x_refsource_MISC
- https://github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de x_refsource_MISC
- https://github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2024/09/msg00031.html