Skip to content
OpenAdvisories
High · 8.1 CVE-2015-7809 EUVD-2022-5869GHSA-xw83-pwrm-9j74

Twig remote code execution in templates

Published Nov 6, 2015 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 8 twig 1.16.2-1+deb8u1 DSA-3343-1

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist twig/twig < 1.20.0 1.20.0 GHSA-xw83-pwrm-9j74

Advisories 1

References