Access Restriction Bypass Affecting twig/twig package, versions <1.20.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
7.72% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-TWIGTWIG-472639
  • published20 Nov 2019
  • disclosed12 Aug 2015
  • creditJames Kettle

Introduced: 12 Aug 2015

CVE-2015-7809  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade twig/twig to version 1.20.0 or higher.

Overview

twig/twig is a flexible, fast, and secure template language for PHP.

Affected versions of this package are vulnerable to Access Restriction Bypass. The displayBlock function Template.php, when Sandbox mode is enabled, allows remote attackers to execute arbitrary code via the _self variable in a template.

CVSS Scores

version 3.1