Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to control panel
-
DeliveryCreate malicious TotalRevenue widget with SQL injection payload
-
ExploitInject serialized FileCookieJar object into queue table
-
InstallTrigger queue processing via unauthenticated endpoint
-
C2Deserialize malicious object
-
ExecuteExecute __destruct() gadget chain
-
ImpactWrite PHP webshell to webroot
-
Step 8Execute arbitrary commands via HTTP
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access to Craft CMS control panel with permissions to create or modify dashboard widgets (default for most non-guest user roles including editors, marketers, and shop managers). Craft Commerce plugin must be installed and active (versions 4.0.0-4.10.2 or 5.0.0-5.5.4). Server must be running PHP with PDO database driver configured to allow multi-statement queries (default configuration for most PHP installations). The yii2-queue library must be present (standard dependency in Craft Commerce installations) and GuzzleHttp library must be available in the vendor directory (included by default in Craft Commerce). Queue processing must be enabled via either cron job execution or the publicly accessible queue controller endpoint. |
| Impact | Real-world risk is moderate despite high CVSS 7.7 score. Attack complexity is rated High (AC:H) due to the multi-stage exploitation chain requiring precise knowledge of gadget chains and queue processing behavior. Exploitation requires authenticated control panel access (PR:L), significantly reducing the attack surface compared to unauthenticated vulnerabilities. EPSS score of 0.20% (42nd percentile) suggests security researchers predict low near-term exploitation probability, likely because the attack requires e-commerce platform-specific conditions and authenticated access to Craft CMS admin panels. However, CVSS metrics show complete confidentiality, integrity, and availability impact (VC:H/VI:H/VA:H) once exploited. SSVC framework considerations: exploitation status is POC (gadget chain methodology is publicly documented in research), automatable is no (requires authenticated session and precise multi-step interaction), technical impact is total (arbitrary code execution). Primary risk exists in environments where untrusted users have Craft CMS control panel accounts, such as multi-tenant commerce platforms or agencies with external contractors. Not present in CISA KEV, indicating no confirmed mass exploitation campaigns. |
| Exploit ScenarioDerived | An attacker with low-privileged Craft CMS control panel credentials (such as a content editor or customer service role) creates a malicious TotalRevenue dashboard widget with specially crafted settings containing SQL injection payloads. The injected SQL writes a serialized GuzzleHttp FileCookieJar object into the queue database table with properties configured to write a PHP webshell when deserialized. The attacker triggers queue processing via an unauthenticated endpoint (/queue/run or automatic cron execution), causing yii2-queue to unserialize the malicious object and execute the FileCookieJar destructor, which writes shell.php to the web-accessible public directory. Attacker then accesses the webshell via HTTP to execute arbitrary system commands with PHP process privileges, enabling data exfiltration, lateral movement, or ransomware deployment. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 15, 2026
Remote code execution via SQL injection in Craft Commerce 4.x (4.0.0-4.10.2) and 5.x (5.0.0-5.5.4) allows authenticated control panel users to write PHP webshells through a four-step exploitation chain. Attack exploits unsanitized TotalRevenue widget settings interpolated into SQL, PDO multi-statement support, and unsafe PHP deserialization in yii2-queue to instantiate a GuzzleHttp FileCookieJar gadget chain. Complete exploitation requires only three HTTP requests and low-privileged authenticati
Earlier versions of this analysis (1)
Remote code execution via SQL injection in Craft Commerce 4.x (4.0.0-4.10.2) and 5.x (5.0.0-5.5.4) allows authenticated control panel users to write PHP webshells through a four-step exploitation chain. Attack exploits unsanitized TotalRevenue widget settings interpolated into SQL, PDO multi-statement support, and unsafe PHP deserialization in yii2-queue to instantiate a GuzzleHttp FileCookieJar gadget chain. Complete exploitation requires only three HTTP requests and low-privileged authentication, resulting in arbitrary command execution as the PHP process user. EPSS score of 0.20% (42nd percentile) indicates low predicted exploitation likelihood despite high technical impact. No public exploit or active exploitation confirmed at time of analysis.
RemediationAI
Upgrade immediately to Craft Commerce 4.10.3 or 5.5.5 depending on major version branch. Vendor-released patch available via Composer package manager or direct download from craftcms.com. Patch commit 6d2d24b3a2b0c06593856d05446f82bd8af92d72 addresses the issue by sanitizing widget settings and implementing parameterized queries for SQL execution. No workarounds exist that fully mitigate the vulnerability; temporary risk reduction possible by restricting control panel access to only fully trusted administrators and auditing existing dashboard widgets for suspicious configurations. Review webserver directories for unauthorized PHP files created between initial Commerce installation and patch deployment. Consult official security advisory at https://github.com/craftcms/commerce/security/advisories/GHSA-875v-7m49-8x88 for additional context.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Craft Commerce is a first-party ecommerce extension for Craft CMS, built on the Yii2 PHP framework. The vulnerability chains together three distinct weaknesses: CWE-89 SQL injection in widget configuration handling, PHP object injection via PDO's multi-query execution, and unsafe deserialization in the yii2-queue library. The TotalRevenue widget accepts user-controlled settings that are directly interpolated into SQL expressions without proper sanitization. By exploiting PDO's default allowance of multiple SQL statements per query, an attacker injects a serialized PHP object into the queue table. When Craft's background job processor consumes this queue entry, yii2-queue's unserialize() call instantiates the payload. The attacker leverages a property-oriented programming gadget chain in GuzzleHttp's FileCookieJar class whose __destruct() magic method writes arbitrary file content during object destruction, enabling webshell deployment to the webroot.
Know when Commerce 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
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Craft Commerce is an ecommerce platform for Craft CMS. In versions 4.0.0 through 4.10.2 and 5.0.0 through 5.5.4, there is an SQL injection vulnerability in the Commerce TotalRevenue widget which allows any authenticated control panel user to achieve remote code execution through a four-step exploitation chain. The attack exploits unsanitized widget settings interpolated into SQL expressions, combined with PDO's default multi-statement query support, to inject a maliciously serialized PHP object into the queue table. When the queue consumer processes the injected job, the unrestricted unserialize() call in yii2-queue instantiates a GuzzleHttp FileCookieJar gadget chain whose __destruct() method writes a PHP webshell to the server's webroot. The complete chain requires only three HTTP requests, no administrative privileges, and results in arbitrary command execution as the PHP process user, with queue processing triggered via an unauthenticated endpoint. This issue has been fixed in versions 4.10.3 and 5.5.5.
Executive ViewAI
Craft Commerce versions 4.0.0-4.10.2 and 5.0.0-5.5.4 contain a critical remote code execution vulnerability affecting authenticated control panel users who can modify widget settings. An attacker with low-privilege access can execute arbitrary commands on the server through a SQL injection and PHP deserialization chain, potentially leading to complete system compromise. Organizations running affected Craft Commerce instances should prioritize patching to eliminate the risk of insider threats or lateral movement by compromised accounts.
Apply vendor patch. Pending patch deployment: restrict control panel access to trusted administrators only, disable the TotalRevenue widget if unused, implement network-based access controls limiting control panel exposure, and monitor PHP process logs for suspicious command execution.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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.
Privilege escalation in Adobe Commerce and Magento Open Source (including Adobe Commerce B2B) lets a remote attacker gai
Adobe Commerce versions 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 and earlier are affected by an Improper Restriction of XML E
SAP Commerce, versions - 1808, 1811, 1905, 2005, 2011, Backoffice application allows certain authorized users to create
SAP Commerce Cloud, versions - 1808,1811,1905,2005,2011, enables certain users with required privileges to edit drools r
Adobe Commerce versions 2.4.7-p2, 2.4.6-p7, 2.4.5-p9, 2.4.4-p10 and earlier are affected by an Improper Authentication v
Adobe Commerce versions 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 and earlier are affected by an Improper Access Control vulne
Adobe Commerce versions 2.4.3-p2 (and earlier), 2.3.7-p3 (and earlier) and 2.4.4 (and earlier) are affected by an Improp
If configured to use an Oracle database and if a query is created using the flexible search java api with a parameterize
SAP Commerce, versions - 6.7, 1808, 1811, 1905, and SAP Commerce (Data Hub), versions - 6.7, 1808, 1811, 1905, allows an
Adobe Commerce versions 2.4.6-p3, 2.4.5-p5, 2.4.4-p6 and earlier are affected by a stored Cross-Site Scripting (XSS) vul
Stored cross-site scripting in Adobe Commerce, Magento Open Source, and Adobe Commerce B2B lets a remote attacker persis
Stored cross-site scripting in Adobe Commerce, Magento Open Source, and Adobe Commerce B2B (versions through the August
EUVD-2026-22075
GHSA-875v-7m49-8x88
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB