CVE-2022-29221

High

Description

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.45 and 4.1.1, template authors could inject php code by choosing a malicious {block} name or {include} file name. Sites that cannot fully trust template authors should upgrade to versions 3.1.45 or 4.1.1 to receive a patch for this issue. There are currently no known workarounds.

SeverityHigh
CVSS8.8
Exploit probability—
ProductSmarty
PublishedMay 24, 2022
First seenMay 24, 2022

How to fix

Affected products

ProductAffected versionsFixed in
smarty smartyv < 3.1.45, 4.0.0 ≤ v < 4.1.13.1.45, 4.1.1
debian debian_linux9.0, 10.0, 11.0—
fedoraproject fedora36, 37—
smarty/smartyPackagistv < 3.1.45, 4.0.0 ≤ v < 4.1.13.1.45, 4.1.1

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.