PrestaShop
CVE-2025-25692
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted POST request
-
DeliverySupply phar:// URI to _getHeaders
-
ExploitPHP deserializes malicious PHAR manifest
-
ExecutionCWE-77 gadget chain fires
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
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
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