VDB
Sign up
HIGH8.8

GHSA-634x-pc3q-cf4c

PHP Code Injection by malicious block or filename in Smarty

Quick fix

GHSA-634x-pc3q-cf4c — smarty/smarty: upgrade to the fixed version with the command below.

composer require smarty/smarty:^3.1.45

Details

### Impact Template authors could inject php code by choosing a malicous {block} name or {include} file name. Sites that cannot fully trust template authors should update asap.

### Patches Please upgrade to the most recent version of Smarty v3 or v4.

### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_

### References _Are there any links users can visit to find out more?_

### For more information If you have any questions or comments about this advisory: * Open an issue in [the Smarty repo](https://github.com/smarty-php/smarty)

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/smarty/smarty
Introduced in: 0Fixed in: 3.1.45
Fixcomposer require smarty/smarty:^3.1.45
Packagist/smarty/smarty
Introduced in: 4.0.0Fixed in: 4.1.1
Fixcomposer require smarty/smarty:^4.1.1

References