CVE-2021-29454

High

Description

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.

SeverityHigh
CVSS8.1
Exploit probability—
ProductSmarty
PublishedJan 10, 2022
First seenJan 10, 2022
Weakness typeCWE-74Injection

How to fix

Affected products

ProductAffected versionsFixed in
smarty smartyv < 3.1.42, 4.0.0 ≤ v < 4.0.23.1.42, 4.0.2
debian debian_linux9.0, 10.0, 11.0—
fedoraproject fedora36, 37—
smarty/smartyPackagistv < 3.1.42, 4.0.0 ≤ v < 4.0.23.1.42, 4.0.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.