Code Injection in Smarty - CVE-2024-35226

 

Code Injection in Smarty - CVE-2024-35226

Published: May 29, 2024


Vulnerability identifier: #VU89862
CSH Severity: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2024-35226
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Smarty
Software vendor:
smarty.php.net

Description

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

The vulnerability exists due to improper input validation when handling "extends-tag" attribute. Template authors can inject and execute arbitrary PHP code by choosing a malicious file name for an extends-tag.


Remediation

Install updates from vendor's website.

External links