{"id":"USN-7456-1","summary":"php-twig vulnerabilities","details":"Fabien Potencier discovered that Twig did not run sandbox security checks\nin some circumstances. An attacker could possibly use this issue to cause\na denial of service or execute arbitrary commands. This issue only affected\nUbuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2024-45411)\n\nJamie Schouten discovered that Twig could bypass the security policy for\nan object call. An attacker could possibly use this issue to obtain\nsensitive information. (CVE-2024-51754)\n","modified":"2026-04-27T17:26:57.221145Z","published":"2025-04-24T12:38:00Z","related":["UBUNTU-CVE-2024-45411","UBUNTU-CVE-2024-51754"],"upstream":["CVE-2024-45411","CVE-2024-51754","UBUNTU-CVE-2024-45411","UBUNTU-CVE-2024-51754"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7456-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-45411"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-51754"}],"affected":[{"package":{"name":"php-twig","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/php-twig@2.12.5-1ubuntu0.1~esm2?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.12.5-1ubuntu0.1~esm2"}]}],"versions":["2.11.3-2","2.12.1-1","2.12.2-1","2.12.3-1","2.12.5-1","2.12.5-1ubuntu0.1~esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"2.12.5-1ubuntu0.1~esm2","binary_name":"php-twig"},{"binary_version":"2.12.5-1ubuntu0.1~esm2","binary_name":"php-twig-cssinliner-extra"},{"binary_version":"2.12.5-1ubuntu0.1~esm2","binary_name":"php-twig-extra-bundle"},{"binary_version":"2.12.5-1ubuntu0.1~esm2","binary_name":"php-twig-html-extra"},{"binary_version":"2.12.5-1ubuntu0.1~esm2","binary_name":"php-twig-inky-extra"},{"binary_version":"2.12.5-1ubuntu0.1~esm2","binary_name":"php-twig-intl-extra"},{"binary_version":"2.12.5-1ubuntu0.1~esm2","binary_name":"php-twig-markdown-extra"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7456-1.json","cves_map":{"cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2024-51754"}],"ecosystem":"Ubuntu:Pro:20.04:LTS"}}},{"package":{"name":"php-twig","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/php-twig@3.3.8-2ubuntu4+esm2?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.8-2ubuntu4+esm2"}]}],"versions":["3.3.2-1ubuntu3","3.3.4-1","3.3.6-1","3.3.7-1","3.3.8-2ubuntu4","3.3.8-2ubuntu4+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"3.3.8-2ubuntu4+esm2","binary_name":"php-twig"},{"binary_version":"3.3.8-2ubuntu4+esm2","binary_name":"php-twig-cache-extra"},{"binary_version":"3.3.8-2ubuntu4+esm2","binary_name":"php-twig-cssinliner-extra"},{"binary_version":"3.3.8-2ubuntu4+esm2","binary_name":"php-twig-extra-bundle"},{"binary_version":"3.3.8-2ubuntu4+esm2","binary_name":"php-twig-html-extra"},{"binary_version":"3.3.8-2ubuntu4+esm2","binary_name":"php-twig-inky-extra"},{"binary_version":"3.3.8-2ubuntu4+esm2","binary_name":"php-twig-intl-extra"},{"binary_version":"3.3.8-2ubuntu4+esm2","binary_name":"php-twig-markdown-extra"},{"binary_version":"3.3.8-2ubuntu4+esm2","binary_name":"php-twig-string-extra"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7456-1.json","cves_map":{"cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2024-45411"},{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2024-51754"}],"ecosystem":"Ubuntu:Pro:22.04:LTS"}}},{"package":{"name":"php-twig","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/php-twig@3.8.0-2ubuntu0.1~esm1?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.0-2ubuntu0.1~esm1"}]}],"versions":["3.7.0-1","3.7.1-1","3.8.0-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"3.8.0-2ubuntu0.1~esm1","binary_name":"php-twig"},{"binary_version":"3.8.0-2ubuntu0.1~esm1","binary_name":"php-twig-cache-extra"},{"binary_version":"3.8.0-2ubuntu0.1~esm1","binary_name":"php-twig-cssinliner-extra"},{"binary_version":"3.8.0-2ubuntu0.1~esm1","binary_name":"php-twig-extra-bundle"},{"binary_version":"3.8.0-2ubuntu0.1~esm1","binary_name":"php-twig-html-extra"},{"binary_version":"3.8.0-2ubuntu0.1~esm1","binary_name":"php-twig-inky-extra"},{"binary_version":"3.8.0-2ubuntu0.1~esm1","binary_name":"php-twig-intl-extra"},{"binary_version":"3.8.0-2ubuntu0.1~esm1","binary_name":"php-twig-markdown-extra"},{"binary_version":"3.8.0-2ubuntu0.1~esm1","binary_name":"php-twig-string-extra"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7456-1.json","cves_map":{"cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2024-45411"},{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2024-51754"}],"ecosystem":"Ubuntu:Pro:24.04:LTS"}}}],"schema_version":"1.7.5"}