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-32272

CVE-2026-32272: Craft Commerce SQL Injection Vulnerability

CVE-2026-32272 is an SQL injection flaw in Craft Commerce versions 5.0.0 through 5.5.4 that allows authenticated users to extract database contents. This article covers the technical details, affected versions, and mitigation.

Published: April 17, 2026

CVE-2026-32272 Overview

Craft Commerce, an ecommerce platform for Craft CMS, contains an SQL injection vulnerability in versions 5.0.0 through 5.5.4. The vulnerability exists in the ProductQuery::hasVariant and VariantQuery::hasProduct properties, which bypass the input sanitization blocklist that was implemented in a prior security fix (GHSA-2453-mppf-46cj). The original blocklist only strips top-level Yii2 Query properties such as where and orderBy, but hasVariant and hasProduct parameters pass through untouched and internally call Craft::configure() on a subquery without proper sanitization, effectively re-introducing the SQL injection attack surface.

Critical Impact

Any authenticated control panel user can exploit this boolean-based blind SQL injection to extract arbitrary database contents, including security keys that enable forging admin sessions for privilege escalation.

Affected Products

  • Craft Commerce versions 5.0.0 through 5.5.4
  • Craft CMS installations using vulnerable Craft Commerce plugin versions
  • Ecommerce sites with authenticated control panel users

Discovery Timeline

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

Technical Details for CVE-2026-32272

Vulnerability Analysis

This SQL injection vulnerability represents a security fix bypass, where the original mitigation for a prior SQL injection issue (GHSA-2453-mppf-46cj) proved insufficient. The vulnerability allows authenticated control panel users to inject malicious SQL statements through the hasVariant and hasProduct query parameters.

The attack is classified as boolean-based blind SQL injection, meaning attackers can extract database information by observing differences in application responses based on injected SQL conditions that evaluate to true or false. This technique allows methodical extraction of sensitive data including security keys, user credentials, and other confidential database contents.

The successful exploitation of this vulnerability can lead to complete database compromise and privilege escalation to administrator level through session forgery using extracted security keys.

Root Cause

The root cause lies in incomplete input sanitization. While the previous security fix added a blocklist to ElementIndexesController that strips dangerous top-level Yii2 Query properties like where and orderBy, the hasVariant and hasProduct properties were not included in this blocklist. These properties internally invoke Craft::configure() on a subquery object without applying the same sanitization logic, creating an alternative injection path that bypasses the existing security controls.

Attack Vector

The attack is network-based and requires authentication to the Craft CMS control panel. An authenticated attacker can craft requests containing malicious SQL fragments in the hasVariant or hasProduct parameters. Since these parameters are not sanitized by the blocklist, the malicious input is passed directly to Craft::configure(), which applies the attacker-controlled properties to a database subquery. Through boolean-based blind SQL injection techniques, the attacker can systematically extract arbitrary data from the database by observing response differences, ultimately obtaining security keys that can be used to forge administrative sessions.

Detection Methods for CVE-2026-32272

Indicators of Compromise

  • Unusual or malformed requests to product or variant query endpoints containing hasVariant or hasProduct parameters with SQL-like syntax
  • Database query logs showing unexpected subqueries or conditional statements within product/variant queries
  • Abnormal access patterns to the control panel from authenticated users, especially repeated similar requests with slight variations
  • Evidence of security key extraction or unauthorized admin session creation

Detection Strategies

  • Monitor web application firewall (WAF) logs for SQL injection patterns in hasVariant and hasProduct parameters
  • Implement database activity monitoring to detect unusual query patterns or data extraction attempts
  • Review Craft CMS access logs for suspicious parameter patterns in product and variant query endpoints
  • Audit control panel user activity for anomalous behavior patterns

Monitoring Recommendations

  • Enable detailed logging for all control panel API requests, particularly those involving product and variant queries
  • Configure alerting for database queries containing unexpected SQL keywords in product/variant contexts
  • Monitor for new admin sessions or privilege escalations that cannot be correlated with legitimate administrative actions
  • Implement rate limiting and anomaly detection for control panel query endpoints

How to Mitigate CVE-2026-32272

Immediate Actions Required

  • Upgrade Craft Commerce to version 5.6.0 or later immediately
  • Audit control panel user accounts and revoke access for any suspicious or unnecessary accounts
  • Review database access logs for signs of exploitation and investigate any anomalies
  • Rotate security keys and admin credentials if exploitation is suspected

Patch Information

This vulnerability has been fixed in Craft Commerce version 5.6.0. The fix addresses the incomplete sanitization by ensuring that hasVariant and hasProduct parameters are properly validated before being passed to Craft::configure(). Organizations should upgrade to version 5.6.0 or later as soon as possible.

For detailed information about the fix, refer to the GitHub Pull Request #4232 and the release notes for version 5.6.0. Additional security advisory details are available in the GitHub Security Advisory.

Workarounds

  • Restrict control panel access to only essential personnel while awaiting patch deployment
  • Implement WAF rules to filter requests containing SQL injection patterns in hasVariant and hasProduct parameters
  • Consider temporarily disabling or restricting access to product/variant query functionality if business operations permit
  • Enable additional logging and monitoring on product and variant query endpoints to detect exploitation attempts

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechCraft Commerce

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/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
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Security Advisory

  • GitHub Pull Request

  • GitHub Release Notes

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-32271: Craft Commerce SQL Injection RCE Flaw

  • 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