VDB
Sign up
HIGH7.3

GHSA-4rmg-292m-wg3w

Smarty vulnerable to PHP Code Injection by malicious attribute in extends-tag

Quick fix

GHSA-4rmg-292m-wg3w — smarty/smarty: upgrade to the fixed version with the command below.

composer require smarty/smarty:^5.1.1

Details

### Impact Template authors could inject php code by choosing a malicous file name for an extends-tag. Users that cannot fully trust template authors should update asap.

### Patches Please upgrade to the most recent version of Smarty v4 or v5. There is no patch for v3.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/smarty/smarty
Introduced in: 5.0.0Fixed in: 5.1.1
Fixcomposer require smarty/smarty:^5.1.1
Packagist/smarty/smarty
Introduced in: 3.0.0Fixed in: 4.5.3
Fixcomposer require smarty/smarty:^4.5.3

References