CVE-2026-32271: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in craftcms commerce
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.
AI Analysis
Technical Summary
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.
CVE-2026-32271: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in craftcms 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
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.