VDB
Sign up
HIGH8.1

GHSA-xw83-pwrm-9j74

Twig remote code execution in templates

Quick fix

GHSA-xw83-pwrm-9j74 — twig/twig: upgrade to the fixed version with the command below.

composer require twig/twig:^1.20.0

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/twig/twig
Introduced in: 0Fixed in: 1.20.0
Fixcomposer require twig/twig:^1.20.0

References