GitHub Advisoryadvisory · Packagist
GHSA-xw83-pwrm-9j74 Twig remote code execution in templates
HIGH
Official page ↗
- Aliases
- CVE-2015-7809
- Ecosystem
- Packagist
- Packages
- twig/twig
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-74
- Reviewed
- 2024-05-30
Affected packages
• Packagist twig/twig: < 1.20.0 → fixed in 1.20.0
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.
Related
Alias · CVE (1)
- CVE-2015-7809 The displayBlock function Template.php in Sensio Labs Twig before 1.20.0, when Sandbox mode is enabled, allows remote attackers to execute… vulnerability
Weakness · CWE (1)
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness
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