PrestaShop
CVE-2025-25691
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain valid admin credentials
-
DeliveryAuthenticate to PrestaShop back-office
-
ExploitCapture CSRF token from theme import page
-
InstallCraft malicious PHAR archive with gadget chain payload
-
C2POST archive to /themes/import endpoint
-
ExecuteServer processes file, triggering PHAR deserialization
-
ImpactExecute arbitrary OS commands as web server process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an active, authenticated session in the PrestaShop admin panel with sufficient privileges to access the theme import feature (/admin/index.php/improve/design/themes/import). The reference URLs confirm a valid CSRF token tied to that admin session must accompany the POST request. Exploitation is therefore gated by obtaining admin-level credentials and a live session token - this is a critical limiting factor not reflected in the provided CVSS PR:N rating, which conflicts with the admin-only endpoint evidence and has not been resolved by vendor advisory. The vulnerability is specific to PrestaShop 8.2.0 per available CPE data; other versions have not been confirmed vulnerable. There is no evidence of exploitation against unauthenticated or default configurations. |
| Impact | The provided CVSS score of 6.5 with vector AV:N/AC:L/PR:N/UI:N/C:L/I:L/A:N materially understates the risk and contains internal contradictions. First, the impact metrics C:L/I:L/A:N are inconsistent with the stated consequence of arbitrary code execution (RCE), which should carry C:H/I:H/A:H. Second, PR:N (no privileges required) conflicts directly with the reference URLs, which point to an admin-only endpoint (/admin/index.php/improve/design/themes/import) that requires a valid admin session and CSRF token - strongly implying PR:H is the correct metric. This CVSS discrepancy is unresolved by any vendor advisory in the provided data. The EPSS score of 0.79% (52nd percentile) reflects a below-average near-term exploitation probability despite the public POC, likely because admin credential access is a prerequisite that limits opportunistic exploitation. No CISA KEV listing means no confirmed active exploitation at time of analysis. Real-world risk is moderate-to-high for shops on version 8.2.0 where admin credentials may be compromised: the POC removes technical barriers, but the authentication requirement substantially limits mass exploitation. |
| Exploit ScenarioDerived | An attacker who has obtained valid PrestaShop admin credentials - via phishing, credential stuffing, or prior breach - authenticates to the back-office admin panel and captures a valid CSRF token from the theme import page. The attacker then submits a crafted POST request to /themes/import containing a malicious PHAR archive designed to trigger a PHP object deserialization gadget chain; when the server processes the file, the PHAR stream wrapper deserializes attacker-controlled objects, resulting in OS command injection executed under the web server process account. A public proof-of-concept is available at https://github.com/3em0/cve_repo/blob/main/preshop/CVE-2025-25691.md, enabling attackers with moderate PHP knowledge to operationalize this attack. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 05, 2026
Remote code execution in PrestaShop 8.2.0 is achievable through a PHAR deserialization flaw in the theme import endpoint (/themes/import), where a crafted POST request containing a malicious PHP Archive triggers arbitrary code execution on the server. A publicly available proof-of-concept exploit exists on GitHub, lowering the technical barrier for skilled attackers. No active exploitation has been confirmed in CISA KEV, but the combination of a public POC and a targeted admin-facing endpoint warrants prompt remediation for any deployment on this version.
RemediationAI
No specific patched version has been independently confirmed from the available data - administrators should monitor the PrestaShop GitHub repository at https://github.com/PrestaShop/PrestaShop and official PrestaShop security channels for a released fix, and upgrade as soon as one is available. As an immediate compensating control, restrict access to the admin theme import endpoint (/admin/index.php/improve/design/themes/import) at the web server or WAF level to trusted IP addresses only, preventing external attackers from reaching the endpoint even with valid credentials. Hardening PHP to restrict PHAR stream wrapper usage (setting phar.readonly = On in php.ini and constraining open_basedir) reduces deserialization attack surface but may break legitimate theme management functionality - test in staging first. Enforce multi-factor authentication on all PrestaShop admin accounts to raise the cost of credential compromise, and audit current admin users for unauthorized access. These controls address the attack pathway but are not substitutes for applying the vendor patch.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in PrestaShop's theme import functionality (CPE: cpe:2.3:a:prestashop:prestashop:8.2.0:*:*:*:*:*:*:*), which accepts uploaded archive files to install custom storefront themes. PHP's PHAR (PHP Archive) stream wrapper has a well-documented behavior where it triggers PHP object deserialization automatically when a PHAR file is accessed - even through otherwise-safe file operations such as file_exists() or include() - making it a powerful deserialization gadget chain entry point. The vulnerability is classified CWE-77 (Improper Neutralization of Special Elements Used in a Command), indicating that the PHP deserialization chain ultimately results in OS-level command injection rather than purely in-process PHP object manipulation. The reference URLs in the NVD data point to a PrestaShop admin-panel path that includes a CSRF token parameter, confirming this endpoint is within the authenticated back-office of PrestaShop.
Know when Prestashop gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Admin-only endpoint with CSRF token implies PR:H; arbitrary code execution warrants C:H/I:H/A:H, not the provided C:L/I:L/A:N.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
A PHAR deserialization vulnerability in the component /themes/import of PrestaShop v8.2.0 allows attackers to execute arbitrary code via a crafted POST request.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
More in Prestashop
View allPrestaShop dpdfrance <6.1.3 is vulnerable to SQL Injection via dpdfrance/ajax.php. Rated critical severity (CVSS 9.8), t
An SQL injection vulnerability in the Payplug (payplug) module for PrestaShop, in versions 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3
Prestashop possearchproducts 1.7 is vulnerable to SQL Injection via PosSearch::find(). Rated critical severity (CVSS 9.8
Prestashop posstaticfooter <= 1.0.0 is vulnerable to SQL Injection via posstaticfooter::getPosCurrentHook(). Rated criti
The eo_tags package before 1.3.0 for PrestaShop allows SQL injection via an HTTP User-Agent or Referer header. Rated cri
PrestaShop is an Open Source e-commerce platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp
The store system in PrestaShop 1.7.7.0 allows time-based boolean SQL injection via the module=productcomments controller
PrestaShop from version 1.7.5.0 and before version 1.7.6.8 is vulnerable to a blind SQL Injection attack in the Catalog
reset/modules/advanced_form_maker_edit/multiupload/upload.php in the RESET.PRO Adobe Stock API integration 4.8 for Prest
reset/modules/fotoliaFoto/multi_upload.php in the RESET.PRO Adobe Stock API Integration for PrestaShop 1.6 and 1.7 allow
modules/orderfiles/ajax/upload.php in the Customer Files Upload addon 2018-08-01 for PrestaShop (1.5 through 1.7) allows
PrestaShop 1.6.x before 1.6.1.23 and 1.7.x before 1.7.4.4 allows remote attackers to execute arbitrary code via a file u
NVD
CVE.org
EPSS
GitHub
Exploit-DB