CVE-2015-7809 json
Twig remote code execution in templates
published 2015-11-06 11 y ago modified 2026-06-17 4 mo ago also GHSA-xw83-pwrm-9j74 , EUVD-2022-5869
- cvss
- 8.1
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.4%
- EPSS 3.4% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist twig/twig 1.20.0
- github.com/fabpot/Twig@30be077 commit
- github.com/twigphp/Twig@30be077 commit
- github.com/twigphp/Twig#1759 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2015-7809 updated cvss 6.8
php-twig: Remote code execution via Twig templates
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.40% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | twig/twig | <1.20.0 |
1.20.0 |
Classification
References
-
github.com
/twigphp/Twig/pull/1759
web
- github.com /fabpot/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f
-
github.com
/twigphp/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f
web
-
debian.org
/security/2015/dsa-3343
vendor-advisory, web
-
symfony.com
/blog/security-release-twig-1-20-0
web, vendor-advisory
-
openwall.com
/lists/oss-security/2015/10/11/2
mailing-list, web
-
openwall.com
/lists/oss-security/2015/08/21/3
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2015-7809
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2015-7809.yaml
web
-
github.com
/twigphp/Twig
package
-
symfony.com
/blog/security-release-twig-1-20-0
web
Sources
- CVE List CVE-2015-7809
- GitHub Advisory GHSA-xw83-pwrm-9j74
- NVD CVE-2015-7809
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.