{"id":"GHSA-xw83-pwrm-9j74","summary":"Twig remote code execution in templates","details":"The `displayBlock` function `Template.php` in Sensio Labs Twig before 1.20.0, when Sandbox mode is enabled, allows remote attackers to execute arbitrary code via the `_self` variable in a template.","aliases":["CVE-2015-7809"],"modified":"2024-05-30T13:26:54.932820Z","published":"2022-05-14T02:03:50Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-05-30T12:39:43Z","nvd_published_at":"2015-11-06T21:59:00Z","cwe_ids":["CWE-74"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-7809"},{"type":"WEB","url":"https://github.com/twigphp/Twig/pull/1759"},{"type":"WEB","url":"https://github.com/twigphp/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2015-7809.yaml"},{"type":"PACKAGE","url":"https://github.com/twigphp/Twig"},{"type":"WEB","url":"https://symfony.com/blog/security-release-twig-1-20-0"},{"type":"WEB","url":"http://openwall.com/lists/oss-security/2015/08/21/3"},{"type":"WEB","url":"http://openwall.com/lists/oss-security/2015/10/11/2"},{"type":"WEB","url":"http://symfony.com/blog/security-release-twig-1-20-0"},{"type":"WEB","url":"http://www.debian.org/security/2015/dsa-3343"}],"affected":[{"package":{"name":"twig/twig","ecosystem":"Packagist","purl":"pkg:composer/twig/twig"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.0"}]}],"versions":["1.3.0","1.4.0","1.5.0","1.5.1","1.6.0","1.6.1","1.6.2","1.6.3","1.6.4","1.6.5","v1.10.0","v1.10.1","v1.10.2","v1.10.3","v1.11.0","v1.11.1","v1.12.0","v1.12.0-RC1","v1.12.1","v1.12.2","v1.12.3","v1.13.0","v1.13.1","v1.13.2","v1.14.0","v1.14.1","v1.14.2","v1.15.0","v1.15.1","v1.16.0","v1.16.1","v1.16.2","v1.16.3","v1.17.0","v1.18.0","v1.18.1","v1.18.2","v1.19.0","v1.7.0","v1.8.0","v1.8.1","v1.8.2","v1.8.3","v1.9.0","v1.9.1","v1.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-xw83-pwrm-9j74/GHSA-xw83-pwrm-9j74.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}