PHP code injection in Smarty - CVE-2017-1000480
Published: January 25, 2018
Vulnerability identifier: #VU10251
CSH Severity: High
CVSS v4: 9.3 [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]
CVE-ID: CVE-2017-1000480
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
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.
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.
Affected software
Smarty
Debian Linux
Fedora
php-Smarty
Debian Linux
Fedora
php-Smarty
How to mitigate CVE-2017-1000480
Update to version 3.1.32.
php-Smarty - addressed in versions 3.1.33-1.el7, 3.1.33-1.fc28, 3.1.33-1.fc29