GitHub Advisoryadvisory · Packagist

GHSA-xw83-pwrm-9j74 Twig remote code execution in templates

HIGH Published 2022-05-14 Modified 2024-05-30 Official page ↗
Aliases
CVE-2015-7809
Ecosystem
Packagist
Packages
twig/twig
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-74
Reviewed
2024-05-30

Affected packages

• Packagist twig/twig: < 1.20.0 → 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.

Related

Alias · CVE (1)

  • 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… vulnerability

Weakness · CWE (1)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness

References