Live threats

All CVEs / Symfony

CVE-2015-7809Symfony Twig

Medium 6.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Twig.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
symfonytwig≤ 1.19.0

Official sources

References

Links published by the sources. Open them with care.