CVE-2015-7809
mediumpriority · track · 28EPSS 0.034 · 89 %ileEUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.8–8.1
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-xw83-pwrm-9j74Twig remote code execution in templates2022-05-14ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (20)
External citations — patches, advisories, analysis.
- http://openwall.com/lists/oss-security/2015/08/21/3cnnvd
- http://openwall.com/lists/oss-security/2015/10/11/2cnnvd
- http://symfony.com/blog/security-release-twig-1-20-0cnnvd
- http://twig.sensiolabs.org/Patchcnnvd
- http://www.debian.org/security/2015/dsa-3343cnnvd
- http://www.securityfocus.com/bid/76484cnnvd
- https://github.com/fabpot/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8fcnnvd
- https://github.com/twigphp/Twig/pull/1759cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan