First published: Mon Jan 10 2022(Updated: )
### 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)
Credit: security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
composer/smarty/smarty | <3.1.42>=4.0.0<4.0.2 | |
debian/smarty3 | 3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u1 3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u2 3.1.39-2+deb11u1 3.1.47-2 3.1.48-1 | |
debian/smarty4 | 4.3.0-1+deb12u1 4.3.1-1 | |
Smarty Smarty | <3.1.42 | |
Smarty Smarty | >=4.0.0<4.0.2 | |
Debian Debian Linux | =9.0 | |
Debian Debian Linux | =10.0 | |
Debian Debian Linux | =11.0 | |
Fedoraproject Fedora | =36 | |
Fedoraproject Fedora | =37 | |
composer/smarty/smarty | >=4.0.0<4.0.2 | 4.0.2 |
composer/smarty/smarty | <3.1.42 | 3.1.42 |
<3.1.42 | ||
>=4.0.0<4.0.2 | ||
=9.0 | ||
=10.0 | ||
=11.0 | ||
=36 | ||
=37 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.