HIGH8.1
GHSA-xw83-pwrm-9j74
Twig remote code execution in templates
Quick fix
GHSA-xw83-pwrm-9j74 — twig/twig: upgrade to the fixed version with the command below.
composer require twig/twig:^1.20.0Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-7809[ADVISORY]
- https://github.com/twigphp/Twig/pull/1759[WEB]
- https://github.com/twigphp/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2015-7809.yaml[WEB]
- https://github.com/twigphp/Twig[PACKAGE]
- https://symfony.com/blog/security-release-twig-1-20-0[WEB]
- http://openwall.com/lists/oss-security/2015/08/21/3[WEB]
- http://openwall.com/lists/oss-security/2015/10/11/2[WEB]
- http://symfony.com/blog/security-release-twig-1-20-0[WEB]
- http://www.debian.org/security/2015/dsa-3343[WEB]