Read the docs
TI-2015-06486 Aliases CVE-2015-7809GHSA-xw83-pwrm-9j74

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

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—twig/twig (Packagist)before 1.20.01.20.0Patch availableGHSA-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

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*up to 1.19.0Vulnerablesymfony
  • cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* Versions up to 1.19.0 Vulnerable ·symfony

Remediation

  • Fix · GHSA-xw83-pwrm-9j74 twig/twig (Packagist) Fixed in 1.20.0 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2015-7809
  2. 2026-10-03 Alias added: GHSA-xw83-pwrm-9j74

References

  • 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
See all 24 →

Sources