{"id":"CVE-2025-24374","aliases":["CVE-2025-24374","GHSA-3xg3-cgvq-2xwr"],"related":[],"kind":"vulnerability","state":"published","title":"Twig fixes a security issue where escaping was missing when using null coalesce operator (??)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"When using the `??` operator, output escaping was missing for the expression on the left side of the operator.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-01-29T15:22:34.012Z","modified":"2026-06-17T08:58:55.593Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":">= 3.16.0, < 3.19.0","status":"affected"}],"vendor":"twigphp","product":"Twig","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.16.0","status":"affected","fixed":"3.19.0"}],"ecosystem":"Packagist","package":"twig/twig","purl":"pkg:composer/twig/twig","source":"ghsa"}],"references":[{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24374","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2025-24374.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/twigphp/Twig","tags":["package"],"sources":["ghsa"]},{"url":"https://symfony.com/blog/twig-cve-2025-24374-missing-output-escaping-for-the-null-coalesce-operator","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-29T15:44:45.378Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-24374","url":"https://www.cve.org/CVERecord?id=CVE-2025-24374","licence":"CVE Terms of Use","modified":"2025-01-29T15:44:49.358Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3xg3-cgvq-2xwr","url":"https://github.com/advisories/GHSA-3xg3-cgvq-2xwr","licence":"CC-BY-4.0","modified":"2025-01-30T15:36:48.022Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-24374","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24374","licence":"Public domain","modified":"2026-06-17T08:58:55.593Z"}],"updatedAt":"2026-11-25T22:58:53.667Z","epss":{"score":0.00298,"percentile":0.24167,"date":"2026-12-01T12:00:22.000Z"}}