CVE-2021-29454

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in packagist/smarty/smarty

Identifiers

CVE-2021-29454, GHSA-29gp-2c3m-3j6m

Package Slug

packagist/smarty/smarty

Vulnerability

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Description

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. 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.

Affected Versions

All versions before 3.1.42, all versions starting from 4.0.0 before 4.0.2

Solution

Upgrade to versions 3.1.42, 4.0.2 or above.

Last Modified

2022-01-21

source