Code Injection in Smarty - CVE-2021-29454

 

Code Injection in Smarty - CVE-2021-29454

Published: March 28, 2022


Vulnerability identifier: #VU61664
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2021-29454
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: smarty.php.net
Affected software:
Smarty

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary PHP code on the target system.

The vulnerability exists due to improper input validation. A remote user can inject a malicious math string into he PHP template and execute arbitrary PHP code on the system.



How to mitigate CVE-2021-29454

Install updates from vendor's website.

Sources