PrestaShop PHAR Deserialization Vulnerability Allowing Arbitrary Code Execution

Vulnerability

A PHAR deserialization vulnerability has been identified in PrestaShop version 8.2.0, specifically within the AdminProductsimportController's _getHeaders function. This vulnerability allows attackers to execute arbitrary code by sending a crafted POST request that includes a malicious PHAR file. The vulnerability arises from the deserialization of user input without proper filtering, enabling the execution of unauthorized PHP code on the server.

Impact

Exploitation of this vulnerability leads to unauthorized remote code execution on the server where PrestaShop is installed.

Reproduction

To reproduce this vulnerability, upload a malicious PHAR file to a PrestaShop 8.2.0 installation using the Admin Products Import controller. The PHAR file should be crafted to exploit the deserialization vulnerability by including a payload that, when deserialized, executes arbitrary PHP code. Once the file is uploaded, the _getHeaders function will be triggered, leading to the execution of the embedded payload.

Added: Jul 30, 2025, 5:23 PM
Updated: Jul 30, 2025, 7:37 PM

Vulnerability Rating

Custom Algorithm
spread
6.4
impact
10.0
exploitability
9.7
remediation
0.0
relevance
0.3
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.