Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 76%

CVE-2026-32271: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in craftcms commerce

0
High
VulnerabilityCVE-2026-32271cvecve-2026-32271cwe-89
Published: Mon Apr 13 2026 (04/13/2026, 20:19:19 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: commerce

Description

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.

CVSS v4.0

Score 7.7high

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/21/2026, 05:58:09 UTC

Technical Analysis

An SQL injection vulnerability exists in Craft Commerce's TotalRevenue widget in versions 4.0.0 to 4.10.2 and 5.0.0 to 5.5.4. Unsanitized widget settings are interpolated into SQL expressions, and PDO's multi-statement support allows injection of a malicious serialized PHP object into the queue table. When the queue consumer processes this job, the unserialize() call in yii2-queue triggers a GuzzleHttp FileCookieJar gadget chain, which writes a PHP webshell to the webroot via its destructor. This chain requires only authenticated control panel access (no admin privileges) and three HTTP requests, with queue processing triggered through an unauthenticated endpoint, resulting in arbitrary code execution as the PHP process user. The issue is resolved in Craft Commerce versions 4.10.3 and 5.5.5.

Potential Impact

Successful exploitation results in remote code execution on the server running Craft Commerce, allowing an attacker with authenticated control panel access (non-admin) to execute arbitrary commands as the PHP process user. This can lead to full compromise of the affected system. The vulnerability leverages SQL injection combined with PHP object injection and unauthenticated queue processing to achieve this impact.

Mitigation Recommendations

A fix is available in Craft Commerce versions 4.10.3 and 5.5.5. Users should upgrade to these or later versions to remediate this vulnerability. Until upgraded, restrict control panel access to trusted users only, as the exploit requires authenticated control panel access. Patch status is confirmed fixed in the specified versions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-11T15:05:48.400Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69dd563d82d89c981f59ffd3

Added to database: 4/13/2026, 8:46:53 PM

Last enriched: 4/21/2026, 5:58:09 AM

Last updated: 6/2/2026, 7:40:58 PM

Views: 82

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses