CVE-2025-24374 Twig fixes a security issue where escaping was missing when using null coalesce operator (??)
MediumCVSS 4.3
EPSS 0.30%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- PHPDebian
Description
Twig is a template language for PHP. When using the ?? operator, output escaping was missing for the expression on the left side of the operator. This vulnerability is fixed in 3.19.0.
Upgrade path
5 packages: 3 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/php-twig(Debian 12) | = 3.5.1-1; = 3.5.1-1+deb12u1; = 3.5.1-1+deb12u2; = 3.5.1-1+deb12u3 +56 more | No fix listed | No fix yet |
| debian/php-twig(Debian 13) | < 3.19.0-1~bootstrap | 3.19.0-1~bootstrap | Fixed |
| debian/php-twig(Debian 14) | < 3.19.0-1~bootstrap | 3.19.0-1~bootstrap | Fixed |
| twig/twig(Packagist) | = v3.16.0; = v3.17.0; = v3.17.1; = v3.18.0 +1 more | 3.19.0 | Fixed |
| twigphp Twig | = >= 3.16.0, < 3.19.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| twig/twig(Packagist) | >= 3.16.0, < 3.19.0 | 3.19.0 |
| twig/twig(Packagist) | = v3.16.0 | No fix listed |
| twig/twig(Packagist) | = v3.17.0 | No fix listed |
| twig/twig(Packagist) | = v3.17.1 | No fix listed |
| twig/twig(Packagist) | = v3.18.0 | No fix listed |
| debian/php-twig(Debian:12) | All versions | No fix listed |
| debian/php-twig(Debian:14) | < 3.19.0-1~bootstrap | 3.19.0-1~bootstrap |
| debian/php-twig(Debian:13) | < 3.19.0-1~bootstrap | 3.19.0-1~bootstrap |
| debian/php-twig(Debian:12) | = 3.10.1-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.10.3-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.11.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.13.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.14.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.14.0-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.14.0-3 | No fix listed |
| debian/php-twig(Debian:12) | = 3.14.0-4 | No fix listed |
| debian/php-twig(Debian:12) | = 3.14.2-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.14.2-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.14.2-3 | No fix listed |
| debian/php-twig(Debian:12) | = 3.15.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.15.0-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.17.1-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.17.1-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.18.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.18.0-2 | No fix listed |
Show 43 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/php-twig(Debian:12) | = 3.18.0-4 | No fix listed |
| debian/php-twig(Debian:12) | = 3.18.0-5 | No fix listed |
| debian/php-twig(Debian:12) | = 3.18.0-6 | No fix listed |
| debian/php-twig(Debian:12) | = 3.18.0-7 | No fix listed |
| debian/php-twig(Debian:12) | = 3.19.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.19.0-1~bootstrap | No fix listed |
| debian/php-twig(Debian:12) | = 3.20.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.20.0-1~bootstrap | No fix listed |
| debian/php-twig(Debian:12) | = 3.20.0-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.21.1-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.21.1-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.21.1-3 | No fix listed |
| debian/php-twig(Debian:12) | = 3.22.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.22.0-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.22.1-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.22.1-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.22.1-3 | No fix listed |
| debian/php-twig(Debian:12) | = 3.22.2-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.22.2-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.23.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.23.0-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.24.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.26.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.27.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.27.1-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.28.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.5.1-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.5.1-1+deb12u1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.5.1-1+deb12u2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.5.1-1+deb12u3 | No fix listed |
| debian/php-twig(Debian:12) | = 3.6.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.6.1-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.7.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.7.1-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.7.1-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.7.1-3 | No fix listed |
| debian/php-twig(Debian:12) | = 3.8.0-1 | No fix listed |
| debian/php-twig(Debian:12) | = 3.8.0-2 | No fix listed |
| debian/php-twig(Debian:12) | = 3.8.0-3 | No fix listed |
| debian/php-twig(Debian:12) | = 3.8.0-4 | No fix listed |
| debian/php-twig(Debian:12) | = 3.9.3-1 | No fix listed |
| debian/php-twig(Debian:12) | = 4.0.0~alpha1-1 | No fix listed |
| twigphp Twig | = >= 3.16.0, < 3.19.0 | No fix listed |
References
- https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3 patch
- github.com exploit
- github.com product
- symfony.com
- Debian Security Tracker CVE-2025-24374 vendor-advisory
- github.com