{"id":"UBUNTU-CVE-2025-24374","details":"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.","modified":"2025-09-08T17:08:11Z","published":"2025-01-29T16:15:00Z","upstream":["CVE-2025-24374"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-24374"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-24374"},{"type":"REPORT","url":"https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr"},{"type":"REPORT","url":"https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3"}],"affected":[{"package":{"name":"twig","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/twig@1.23.1-1ubuntu4+esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.20.0-1","1.23.1-1ubuntu1","1.23.1-1ubuntu4","1.23.1-1ubuntu4+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.23.1-1ubuntu4+esm1","binary_name":"php-twig"}],"priority_reason":"It's exploited only if an user creates a vulnerable template"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-24374.json"}},{"package":{"name":"twig","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/twig@2.4.6-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.24.0-2ubuntu1","2.4.4-2ubuntu1","2.4.6-1","2.4.6-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"php-twig","binary_version":"2.4.6-1ubuntu0.1~esm1"}],"priority_reason":"It's exploited only if an user creates a vulnerable template"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-24374.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"low"}]}