VDB
Sign up
HIGH8.1

GHSA-29gp-2c3m-3j6m

Sandbox Escape by math function in smarty

Quick fix

GHSA-29gp-2c3m-3j6m — smarty/smarty: upgrade to the fixed version with the command below.

composer require smarty/smarty:^3.1.42

Details

### Impact Template authors could run arbitrary PHP code by crafting a malicious math string. If a math string is passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string.

### Patches Please upgrade to 4.0.2 or 3.1.42 or higher.

### References See [documentation on Math function](https://www.smarty.net/docs/en/language.function.math.tpl).

### For more information If you have any questions or comments about this advisory please 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.42
Fixcomposer require smarty/smarty:^3.1.42
Packagist/smarty/smarty
Introduced in: 4.0.0Fixed in: 4.0.2
Fixcomposer require smarty/smarty:^4.0.2

References