CVE-2015-7809
MEDIUM 6.8CVSS 2.0Twig remote code execution in templates
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.
- Published
- 6 Nov 2015
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-264CWE-74
- Also known as
- GHSA-xw83-pwrm-9j74
- Sources
- NVDJSONOSV GHSA-xw83-pwrm-9j74JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | symfony | twigcpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
<= 1.19.0 | |
| OSV | Packagist | twig/twig | < 1.20.0 | 1.20.0 |
References
- 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 · Vendor Advisory, WEB
- http://www.debian.org/security/2015/dsa-3343 · WEB
- https://github.com/fabpot/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f
- https://github.com/twigphp/Twig/pull/1759 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2015-7809 · ADVISORY
- 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
History
- 25 Nov 2026 20:18 UTC · NVD: first stored (published 6 Nov 2015)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 May 2022)