Code Injection in PrestaShop - CVE-2022-36408

 

Code Injection in PrestaShop - CVE-2022-36408

Published: July 25, 2022 / Updated: July 26, 2022


Vulnerability identifier: #VU65762
CSH Severity: High
CVSS v4: 9.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-36408
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

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

The vulnerability exists due to insecure eval() call when processing cache entries in MySQL Smarty cache feature. A remote attacker can inject specially crafted entries into the database and execute arbitrary PHP code on the system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system but requires the ability to inject specially crafted entries into the database, for instance in case of a SQL injection vulnerability, such vulnerability in Wishlist modules described as SB2022072609.

Note, the vulnerability is being actively exploited in the wild.


Affected software

PrestaShop

How to mitigate CVE-2022-36408

Install updates from vendor's website.

PrestaShop - update to 1.7.8.7

External References

Related Security Bulletins