CVE-2015-7809Symfony Twig
Medium 6.8 No auth needed
Follow: this CVE · Symfony · Symfony Twig We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 2.0
- 6.8
- EPSS
- 3.4% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Nov 6, 2015
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-264
- Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
What happens
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.
What to do
- Apply the vendor's security update for Twig.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | twig/twig |
< 1.20.0 |
1.20.0 |
composer require "twig/twig:^1.20.0" |
Per OSV / GitHub Advisories (GHSA-xw83-pwrm-9j74). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| symfony | twig | ≤ 1.19.0 |
Official sources
References
Links published by the sources. Open them with care.
- openwall.com
- openwall.com
- symfony.com Vendor Advisory
- www.debian.org
- github.com
- github.com