ID:5161 - Exploit for Code Injection in Smarty - CVE-2021-26120

 
Main Vulnerability Database Exploits ID:5161 - Exploit for Code Injection in Smarty - CVE-2021-26120

ID:5161 - Exploit for Code Injection in Smarty - CVE-2021-26120

Published: February 23, 2021


Vulnerability identifier: #VU50870
Vulnerability risk: Medium
CVE-ID: CVE-2021-26120
CWE-ID: CWE-94
Exploitation vector: Remote access
Vulnerable software:
Smarty

Link to public exploit:


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 when processing data passed via an unexpected function name after a "{function name=" substring. A remote user can send a specially crafted request and execute arbitrary PHP code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Remediation

Install updates from vendor's website.