{"id":"GHSA-3xg3-cgvq-2xwr","aliases":["CVE-2025-24374"],"title":"Twig security issue where escaping was missing when using null coalesce operator","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","description":"When using the `??` operator, output escaping was missing for the expression on the left side of the operator.\n","severity":"medium","score":4.3,"published":"2025-01-29T18:41:43.000Z","modified":"2025-01-30T15:36:48.022Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"twig/twig","sources":[{"name":"OSV · GHSA-3xg3-cgvq-2xwr","url":"https://osv.dev/vulnerability/GHSA-3xg3-cgvq-2xwr"}],"ranges":[{"events":[{"introduced":"3.16.0"},{"fixed":"3.19.0"}],"type":"ECOSYSTEM"}],"versions":["v3.16.0","v3.17.0","v3.17.1","v3.18.0"],"fixed":["3.19.0"]}],"sourceAffected":[],"references":["https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr","https://nvd.nist.gov/vuln/detail/CVE-2025-24374","https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3","https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2025-24374.yaml","https://github.com/twigphp/Twig","https://symfony.com/blog/twig-cve-2025-24374-missing-output-escaping-for-the-null-coalesce-operator"],"sources":[{"name":"OSV","id":"GHSA-3xg3-cgvq-2xwr","modified":"2025-01-30T15:36:48.022757Z","url":"https://osv.dev/vulnerability/GHSA-3xg3-cgvq-2xwr"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T23:25:34.350Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}