Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-32271

CVE-2026-32271: Craft Commerce SQL Injection RCE Flaw

CVE-2026-32271 is an SQL injection vulnerability in Craft Commerce that enables remote code execution via an exploitation chain. This post covers the technical details, affected versions, impact, and mitigation steps.

Published: April 17, 2026

CVE-2026-32271 Overview

CVE-2026-32271 is a critical SQL injection vulnerability affecting Craft Commerce, the ecommerce platform for Craft CMS. This vulnerability allows any authenticated control panel user to achieve remote code execution through a sophisticated four-step exploitation chain that leverages unsanitized widget settings, PDO multi-statement query support, and insecure deserialization.

The attack is particularly dangerous because it requires only three HTTP requests to execute, does not require administrative privileges, and results in arbitrary command execution as the PHP process user. Queue processing can be triggered via an unauthenticated endpoint, making this a highly exploitable vulnerability.

Critical Impact

Authenticated attackers can achieve full remote code execution through SQL injection chained with insecure deserialization, resulting in complete server compromise with minimal effort.

Affected Products

  • Craft Commerce versions 4.0.0 through 4.10.2
  • Craft Commerce versions 5.0.0 through 5.5.4

Discovery Timeline

  • April 13, 2026 - CVE-2026-32271 published to NVD
  • April 13, 2026 - Last updated in NVD database

Technical Details for CVE-2026-32271

Vulnerability Analysis

This vulnerability resides in the Commerce TotalRevenue widget component of Craft Commerce. The flaw stems from improper handling of user-controlled input that gets interpolated directly into SQL expressions without adequate sanitization. What makes this vulnerability particularly severe is the multi-stage exploitation chain it enables.

The attack exploits a combination of weaknesses: first, the unsanitized widget settings allow SQL injection. This is then combined with PDO's default support for multi-statement queries, enabling the attacker to inject a maliciously crafted serialized PHP object directly into the queue table. When the queue consumer processes this injected job, the yii2-queue component's unrestricted unserialize() call instantiates a GuzzleHttp FileCookieJar gadget chain. The __destruct() method of this gadget chain writes a PHP webshell to the server's webroot, completing the RCE chain.

The complete attack requires only low-privileged access (any authenticated control panel user) and can be executed with just three HTTP requests. The queue processing can be initiated through an unauthenticated endpoint, removing the need for continued authenticated access after the initial injection.

Root Cause

The root cause of CVE-2026-32271 is improper input validation in the Commerce TotalRevenue widget. Widget settings provided by authenticated users are directly interpolated into SQL query expressions without proper sanitization or parameterization. This is compounded by the insecure deserialization practices in the yii2-queue component, which performs unrestricted unserialize() operations on data stored in the queue table, allowing object injection attacks.

Attack Vector

The attack is network-based and requires authenticated access to the Craft CMS control panel, though only minimal privileges are needed. The exploitation chain proceeds as follows:

  1. An authenticated user with access to the control panel configures a TotalRevenue widget with malicious settings containing SQL injection payloads
  2. The SQL injection leverages PDO's multi-statement query capability to insert a serialized PHP object into the queue table
  3. The serialized object contains a GuzzleHttp FileCookieJar gadget chain crafted to write arbitrary files
  4. Queue processing (triggered via an unauthenticated endpoint) deserializes the malicious object
  5. The gadget chain's __destruct() method executes, writing a PHP webshell to the webroot
  6. The attacker accesses the webshell to execute arbitrary commands as the PHP process user

The attack mechanism exploits the dangerous combination of SQL injection and insecure deserialization (CWE-89 combined with gadget chain exploitation). For detailed technical information about the vulnerability and the specific code changes in the fix, see the GitHub Security Advisory.

Detection Methods for CVE-2026-32271

Indicators of Compromise

  • Unexpected PHP files appearing in the webroot directory, particularly files with suspicious names or recently created timestamps
  • Anomalous entries in the queue table containing serialized PHP objects with GuzzleHttp\Cookie\FileCookieJar references
  • Unusual SQL query patterns in database logs, especially multi-statement queries originating from widget configuration endpoints
  • Web server access logs showing requests to previously non-existent PHP files in the webroot

Detection Strategies

  • Monitor database query logs for SQL injection patterns, particularly multi-statement queries and INSERT operations targeting the queue table
  • Implement file integrity monitoring on the webroot directory to detect unauthorized file creation
  • Analyze application logs for anomalous widget configuration requests from non-administrative users
  • Deploy web application firewall (WAF) rules to detect SQL injection attempts in widget-related endpoints

Monitoring Recommendations

  • Enable verbose logging for Craft CMS control panel actions, particularly widget configuration changes
  • Configure alerts for new file creation events within the web application directory structure
  • Monitor queue processing logs for deserialization errors or unexpected object instantiation
  • Implement baseline analysis for normal queue table contents and alert on anomalies

How to Mitigate CVE-2026-32271

Immediate Actions Required

  • Upgrade Craft Commerce to version 4.10.3 or 5.5.5 immediately
  • Audit the queue table for any suspicious serialized objects, particularly those referencing GuzzleHttp\Cookie\FileCookieJar
  • Perform a file integrity check on the webroot to identify any unauthorized PHP files
  • Review access logs for evidence of exploitation attempts against widget configuration endpoints
  • Temporarily restrict control panel access to trusted administrators only until patching is complete

Patch Information

The vulnerability has been patched in Craft Commerce versions 4.10.3 and 5.5.5. The fix addresses the SQL injection vulnerability in the TotalRevenue widget by properly sanitizing widget settings before they are interpolated into SQL expressions. For technical details about the patch, see the commit on GitHub.

Organizations should prioritize this update as the vulnerability enables full remote code execution with minimal prerequisites. Review the GitHub Security Advisory GHSA-875v-7m49-8x88 for additional guidance.

Workarounds

  • Restrict control panel access to only trusted users with verified business requirements until patching is completed
  • Implement WAF rules to filter SQL injection patterns in requests to widget configuration endpoints
  • Disable or restrict the TotalRevenue widget functionality if not critical to business operations
  • Consider disabling queue processing via the unauthenticated endpoint if operationally feasible
  • Apply network-level access controls to limit control panel access to trusted IP ranges
bash
# Verify current Craft Commerce version
./craft commerce/about

# Update Craft Commerce via Composer
composer require craftcms/commerce:^4.10.3
# or for version 5.x
composer require craftcms/commerce:^5.5.5

# Clear caches after update
./craft clear-caches/all

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCraft Commerce

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.20%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-875v-7m49-8x88
  • Related CVEs
  • CVE-2026-32272: Craft Commerce SQL Injection Vulnerability

  • CVE-2026-32270: Craft Commerce Information Disclosure Flaw

  • CVE-2026-31867: Craft Commerce Auth Bypass Vulnerability

  • CVE-2026-25483: Craft Commerce Stored XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English