PHP code injection in Smarty - CVE-2017-1000480

 

PHP code injection in Smarty - CVE-2017-1000480

Published: January 25, 2018


Vulnerability identifier: #VU10251
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2017-1000480
CWE-ID: CWE-20
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 attacker to execute arbitrary PHP code on the target system.

The weakness exists due to insufficient sanitization of template name by calling fetch() or display() functions on custom resources. A remote attacker can send a specially file, inject and execute PHP code with elevated privileges.

How to mitigate CVE-2017-1000480

Update to version 3.1.32.

Sources