Skip to main content

PrestaShop CVE-2025-25692

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. Access
    Send crafted POST request
  2. Delivery
    Supply phar:// URI to _getHeaders
  3. Exploit
    PHP deserializes malicious PHAR manifest
  4. Execution
    CWE-77 gadget chain fires
  5. Impact
    Execute arbitrary OS command as web 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 that the target is running exactly PrestaShop 8.2.0 (other versions not confirmed). The attacker must be able to reach the vulnerable endpoint via an HTTP POST request - no authentication is indicated by the CVSS PR:N vector, meaning unauthenticated exploitation is possible against default deployments. A critical prerequisite is that the attacker must be able to deliver a PHAR-formatted file payload that PHP's runtime will deserialize; this typically requires either direct file upload capability or the ability to place a PHAR file at a path reachable via a phar:// URI (e.g., through a prior upload or remote file inclusion step). If the _getHeaders function does not accept raw file paths from POST data directly, attackers may need a staging step to position the malicious archive. PHP configurations that explicitly disable PHAR stream wrapper processing would block this vector. No special platform or non-default configuration is required beyond a standard PHP-based PrestaShop installation.

Impact

The official CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) contains a significant internal inconsistency: a PR:N/AV:N attack surface is rated C:L/I:L despite the stated capability of arbitrary code execution, which should yield C:H/I:H/A:H and a score near 9.8. This underscores that the NVD-assigned impact metrics likely do not reflect the true worst-case impact described. EPSS at 0.77% (51st percentile) signals low observed exploitation activity in telemetry, suggesting mass exploitation has not yet occurred. However, a public POC exists and no KEV listing is present, meaning exploitation remains opportunistic rather than confirmed widespread. SSVC signals: exploitation status is 'PoC published,' the attack is automatable (POST request with no prerequisites), and technical impact is 'total' if code execution is achievable. The combination of zero authentication requirement, network accessibility of typical storefronts, confirmed exploit code, and command injection severity makes this a genuine priority despite the misleadingly moderate official score.

Exploit ScenarioDerived

An unauthenticated attacker sends a crafted HTTP POST request to an exposed PrestaShop 8.2.0 endpoint, embedding a phar:// URI in a parameter consumed by the _getHeaders function. PHP's stream wrapper transparently deserializes the malicious PHAR archive's manifest, firing a CWE-77 gadget chain that injects and executes an OS command under the web server process's privileges. A public PoC exists and documents this technique, enabling exploitation by low-skilled actors against unpatched storefronts.

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

Unauthenticated remote code execution in PrestaShop 8.2.0 is achievable via PHAR deserialization in the _getHeaders function, triggered through a crafted POST request. The publicly available proof-of-concept lowers the bar for exploitation against unpatched storefronts. No active KEV listing exists, but the network-accessible attack surface of e-commerce deployments and the confirmed exploit code make this a meaningful priority for PrestaShop 8.2.0 operators despite a low EPSS score of 0.77%.

RemediationAI

Upgrade PrestaShop beyond 8.2.0; the exact patched release version is not confirmed in the available reference data - operators should monitor the official PrestaShop GitHub repository at https://github.com/PrestaShop/PrestaShop and the security advisory channel for a confirmed fixed version before upgrading. Until a patch is applied, restrict POST access to administrative and API endpoints at the WAF or reverse-proxy layer to limit the blast radius, noting that this may impact legitimate storefront functionality. Disable PHP PHAR stream wrapper processing at the php.ini level by setting 'phar.readonly = On' and ensuring no calls to PHAR functions are required by the application; this may break legitimate PHAR-packaged dependencies and should be tested in staging. Input to file-handling functions should be validated against an allowlist of paths server-side as a defense-in-depth measure. The researcher's PoC is documented at https://github.com/3em0/cve_repo/blob/main/preshop/CVE-2025-25692.md and should be reviewed by defenders to inform detection rule authoring.

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

PrestaShop is a PHP-based open-source e-commerce platform (CPE: cpe:2.3:a:prestashop:prestashop:8.2.0:*:*:*:*:*:*:*). The vulnerability lives in the _getHeaders function, which processes attacker-influenced input without sanitizing PHP stream wrappers. PHP's PHAR (PHP Archive) stream wrapper - triggered when a function such as file_exists(), fopen(), or similar file-operation wrappers is called on a user-supplied path prefixed with 'phar://' - causes PHP to deserialize the PHAR archive manifest, invoking magic methods (__wakeup, __destruct) on serialized objects present in the archive. This allows an attacker to plant a crafted PHAR file whose deserialized object graph triggers CWE-77 (Command Injection) gadget chains, ultimately running arbitrary OS commands. The assigned CWE-77 (Improper Neutralization of Special Elements used in a Command) indicates that the deserialization chain culminates in injected command execution rather than pure object-graph abuse, which distinguishes this from a pure CWE-502 (Deserialization of Untrusted Data) case.

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 9.8 CRITICAL

Network-reachable POST endpoint, no auth required per PR:N, and stated arbitrary code execution justifies C:H/I:H/A:H over the NVD's underscored C:L/I:L.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/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 _getHeaders function of PrestaShop v8.2.0 allows attackers to execute arbitrary code via a crafted POST request.

Threat Intelligence Overview

EPSS Score
0.8%
Top 49% exploitable
Prevalence
Medium
popular e-commerce platform, primarily European SMB segment
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

References

Advisories & patches

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