Skip to main content

PrestaShop CVE-2025-25691

MEDIUM
Command Injection (CWE-77)
2025-07-30 cve@mitre.org
6.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain valid admin credentials
  2. Delivery
    Authenticate to PrestaShop back-office
  3. Exploit
    Capture CSRF token from theme import page
  4. Install
    Craft malicious PHAR archive with gadget chain payload
  5. C2
    POST archive to /themes/import endpoint
  6. Execute
    Server processes file, triggering PHAR deserialization
  7. Impact
    Execute 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (mitre) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 7.2 HIGH

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.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.8%
Top 48% exploitable
Prevalence
Medium
popular open-source e-commerce platform, hundreds of thousands of active storefronts
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.8%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

53
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:prestashop:prestashop:8.2.0:*:*:*:*:*:*:*
CVE-2023-25207 CRITICAL POC
9.8 Mar 13

PrestaShop dpdfrance <6.1.3 is vulnerable to SQL Injection via dpdfrance/ajax.php. Rated critical severity (CVSS 9.8), t

CVE-2023-30153 CRITICAL POC
9.8 Jul 18

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

CVE-2023-30192 CRITICAL POC
9.8 May 12

Prestashop possearchproducts 1.7 is vulnerable to SQL Injection via PosSearch::find(). Rated critical severity (CVSS 9.8

CVE-2023-30194 CRITICAL POC
9.8 May 10

Prestashop posstaticfooter <= 1.0.0 is vulnerable to SQL Injection via posstaticfooter::getPosCurrentHook(). Rated criti

CVE-2023-27569 CRITICAL POC
9.8 Mar 21

The eo_tags package before 1.3.0 for PrestaShop allows SQL injection via an HTTP User-Agent or Referer header. Rated cri

CVE-2022-31181 CRITICAL POC
9.8 Aug 01

PrestaShop is an Open Source e-commerce platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp

CVE-2021-3110 CRITICAL POC
9.8 Jan 20

The store system in PrestaShop 1.7.7.0 allows time-based boolean SQL injection via the module=productcomments controller

CVE-2020-15160 CRITICAL POC
9.8 Sep 24

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

CVE-2019-19595 CRITICAL POC
9.8 Dec 05

reset/modules/advanced_form_maker_edit/multiupload/upload.php in the RESET.PRO Adobe Stock API integration 4.8 for Prest

CVE-2019-19594 CRITICAL POC
9.8 Dec 05

reset/modules/fotoliaFoto/multi_upload.php in the RESET.PRO Adobe Stock API Integration for PrestaShop 1.6 and 1.7 allow

CVE-2018-19355 CRITICAL POC
9.8 Nov 19

modules/orderfiles/ajax/upload.php in the Customer Files Upload addon 2018-08-01 for PrestaShop (1.5 through 1.7) allows

CVE-2018-19126 CRITICAL POC
9.8 Nov 09

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy