Code Injection in Smarty - CVE-2024-35226
Published: May 29, 2024
Vulnerability identifier: #VU89862
CSH Severity: High
CVSS v4.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
Vendor: smarty.php.net
Affected software:
Smarty
Smarty
Detailed vulnerability 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.
How to mitigate CVE-2024-35226
Install updates from vendor's website.