#VU61663 PHP file inclusion in Smarty - CVE-2018-16831

 

#VU61663 PHP file inclusion in Smarty - CVE-2018-16831

Published: March 28, 2022


Vulnerability identifier: #VU61663
Vulnerability risk: High
CVSSv4.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-2018-16831
CWE-ID: CWE-98
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 include and execute arbitrary PHP files on the server.

The vulnerability exists due to incorrect input validation when including PHP files. A remote non-authenticated attacker can send a specially crafted HTTP request to the affected application, bypass the trusted_dir protection mechanism via a file:./../ substring in an include statemen, include and execute arbitrary PHP code on the system with privileges of the web server.


Remediation

Install updates from vendor's website.

External links