SQL Injection Vulnerability in Craft Commerce E-commerce Platform by Craft CMS
CVE-2026-32271
What is CVE-2026-32271?
Craft Commerce, an e-commerce platform for Craft CMS, contains an SQL injection vulnerability in the Commerce TotalRevenue widget. This flaw impacts versions 4.0.0 to 4.10.2 and 5.0.0 to 5.5.4, enabling authenticated control panel users to exploit the issue for remote code execution through a four-step process. Unsanitized settings in the widget lead to SQL expression manipulation, combined with PDO's multi-statement query support. Attackers can inject a serialized PHP object that, when processed by the queue, utilizes an unrestricted unserialize() function to execute arbitrary code via a webshell. The vulnerability requires minimal effort, needing only three HTTP requests and no administrative privileges to trigger queue processing through an unauthenticated endpoint. The issue has been resolved in versions 4.10.3 and 5.5.5.
Affected Version(s)
commerce >= 4.0.0, < 4.10.3 < 4.0.0, 4.10.3
commerce >= 5.0.0, < 5.5.5 < 5.0.0, 5.5.5
