The displayBlock function Template.php in Sensio Labs Twig before 1.20.0, when Sandbox…
Priority LOW 36CWE-264Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-264.
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.
Why it matters now
EPSS 0.03398 88th percentileScored 2026-11-07
Fix Fixed twig/twig (Packagist): 1.20.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | twig/twig (Packagist) | before 1.20.0 | 1.20.0 | Patch available | GHSA-xw83-pwrm-9j74 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- twig/twig (Packagist) Vendor— Affected before 1.20.0 Fixed in 1.20.0 Patch available GHSA-xw83-pwrm-9j74
Remediation
- Fix · GHSA-xw83-pwrm-9j74 twig/twig (Packagist) Fixed in 1.20.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2015-7809
- 2026-10-03 Alias added: GHSA-xw83-pwrm-9j74
References
Advisory 3
Other 8
- https://github.com/twigphp/Twig/pull/1759
- https://github.com/fabpot/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f
- [oss-security] 20151011 Re: CVE Request: twig remote code execution
- [oss-security] 20150821 CVE Request: twig remote code execution
- https://github.com/twigphp/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2015-7809.yaml
- https://github.com/twigphp/Twig
- https://symfony.com/blog/security-release-twig-1-20-0
More symfony Twig vulnerabilities
- TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
- TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
- TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
- TI-2022-18637 Twig may load a template outside a configured directory when using the filesystem loader CVSS 3.1HIGH 7.5
- TI-2026-34292 Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation CVSS 4.0HIGH 8.7
- TI-2026-34285 Twig: PHP code injection via `{% use %}` template name CVSS 4.0HIGH 8.7
Sources
- CVE-2015-7809 · CVE Program
- CVE-2015-7809 · NVD
- FIRST EPSS
- GHSA-xw83-pwrm-9j74 · GitHub Advisory Database · CC BY 4.0
- CVE-2015-7809 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences