4.3medium
Twig fixes a security issue where escaping was missing when using null coalesce operator (??)
- Severity
- 4.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3xg3-cgvq-2xwr
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| twigphp Twig | >= 3.16.0, < 3.19.0 | CVE List |
| twig/twig (Packagist) | from 3.16.0 before 3.19.0 | GitHub Advisory Database |
All scores
| GitHub_M | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
When using the ?? operator, output escaping was missing for the expression on the left side of the operator.
NVD (es)
Twig es un lenguaje de plantillas para PHP. Al utilizar el operador ??, no se podía escapar la salida de la expresión del lado izquierdo del operador. Esta vulnerabilidad se ha corregido en la versión 3.19.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-24374 changed 2025-01-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3xg3-cgvq-2xwr changed 2025-01-30 | CC-BY-4.0 |
| NVD | CVE-2025-24374 changed 2026-06-17 | Public domain |