{"id":"CVE-2025-24374","state":"PUBLISHED","title":"Twig fixes a security issue where escaping was missing when using null coalesce operator (??)","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.","publishedAt":"2025-01-29T15:22:34.012Z","updatedAt":"2025-01-29T15:44:49.358Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["twigphp Twig"],"affected":[{"vendor":"twigphp","product":"Twig","versions":[{"version":">= 3.16.0, < 3.19.0","status":"affected"}]}],"references":["https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr","https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3"],"weaknesses":["CWE-74"],"ingestedAt":"2026-10-29T20:08:47.682Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/24xxx/CVE-2025-24374.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-24374","state":"PUBLISHED","datePublished":"2025-01-29T15:22:34.012Z","dateUpdated":"2025-01-29T15:44:49.358Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-01-20T15:18:26.992Z"},"containers":{"cna":{"title":"Twig fixes a security issue where escaping was missing when using null coalesce operator (??)","descriptions":[{"lang":"en","value":"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":[{"vendor":"twigphp","product":"Twig","versions":[{"version":">= 3.16.0, < 3.19.0","status":"affected"}]}],"references":[{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr","name":"https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3","name":"https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-74","lang":"en","description":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-01-29T15:22:34.012Z"},"source":{"advisory":"GHSA-3xg3-cgvq-2xwr","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-01-29T15:44:45.378845Z","id":"CVE-2025-24374","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-29T15:44:49.358Z"}}]}}}