CVE-2015-7809
HIGH8.1EPSS 2.0%twig - security update
Published: 5/14/2022Modified: 3/9/2026
Description
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.
Affected packages (2)
- Debian/twigfrom 0, < 1.16.2-1+deb8u1
- Packagist/twig/twigfrom 0, < 1.20.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2015-7809
- PATCHhttps://github.com/twigphp/Twig
- WEBhttp://openwall.com/lists/oss-security/2015/08/21/3
- WEBhttp://openwall.com/lists/oss-security/2015/10/11/2
- WEBhttps://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2015-7809.yaml
- WEBhttps://github.com/twigphp/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f
- WEBhttps://github.com/twigphp/Twig/pull/1759
- WEBhttps://symfony.com/blog/security-release-twig-1-20-0
- WEBhttp://symfony.com/blog/security-release-twig-1-20-0
- WEBhttp://www.debian.org/security/2015/dsa-3343