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

CVE-2026-29174: Craftcms Craft Commerce SQLi Vulnerability

CVE-2026-29174 is a SQL injection flaw in Craftcms Craft Commerce that allows authenticated attackers to inject arbitrary SQL queries through inventory levels sorting parameters, potentially compromising databases.

Published: March 13, 2026

CVE-2026-29174 Overview

Craft Commerce, an ecommerce platform for Craft CMS, contains a critical SQL Injection vulnerability in the inventory levels table data endpoint. Prior to version 5.5.3, the sort[0][direction] and sort[0][sortField] parameters are concatenated directly into an addOrderBy() clause without any validation or sanitization. An authenticated attacker with access to the Commerce Inventory section can inject arbitrary SQL queries, potentially leading to a full database compromise.

Critical Impact

Authenticated attackers can execute arbitrary SQL queries through the inventory levels endpoint, potentially extracting sensitive data, modifying database contents, or achieving full database compromise.

Affected Products

  • Craft Commerce versions prior to 5.5.3
  • craftcms craft_commerce (all versions before the security patch)
  • Craft CMS installations utilizing the Commerce Inventory feature

Discovery Timeline

  • 2026-03-10 - CVE-2026-29174 published to NVD
  • 2026-03-11 - Last updated in NVD database

Technical Details for CVE-2026-29174

Vulnerability Analysis

This SQL Injection vulnerability exists within the inventory management functionality of Craft Commerce. The flaw occurs because user-controlled input from sorting parameters is directly incorporated into SQL query construction without proper validation or sanitization. Specifically, the sort[0][direction] and sort[0][sortField] parameters passed to the inventory levels table data endpoint are concatenated into an addOrderBy() clause, creating a classic injection point.

The vulnerability requires authentication and access to the Commerce Inventory section, limiting the attack surface to users with elevated privileges. However, once exploited, an attacker gains the ability to execute arbitrary SQL commands against the underlying database, potentially extracting sensitive customer data, payment information, or administrative credentials stored within the Craft CMS database.

Root Cause

The root cause is insufficient input validation in the InventoryController.php file. The sorting field and direction values are accepted from user input and passed directly to the query builder without being validated against an allowlist of permitted values. This violates the principle of treating all user input as untrusted and allows attackers to break out of the intended SQL context.

Attack Vector

The attack is network-based and requires low-privilege authentication (access to Commerce Inventory section). An attacker can craft malicious HTTP requests to the inventory levels endpoint, manipulating the sort[0][direction] or sort[0][sortField] parameters to inject SQL syntax. Since these values are concatenated into an ORDER BY clause, common SQL injection techniques such as subqueries, UNION-based attacks, or time-based blind injection can be employed to extract data or manipulate the database.

php
// Vulnerable code before patch (src/controllers/InventoryController.php)
// User input directly used without validation
$field = $sort[0]['sortField'];
$direction = $sort[0]['direction'];

if ($field && $direction) {
    if ($field == 'sku') {
        $field = 'purchasables.sku';
    }
    // Values concatenated into query without sanitization
}

Source: GitHub Commit

Detection Methods for CVE-2026-29174

Indicators of Compromise

  • Unusual SQL error messages in web server logs related to inventory endpoints
  • Abnormal database query patterns or execution times from the Craft Commerce application
  • Unexpected data access patterns to the inventory levels table
  • HTTP requests containing SQL syntax in sort[0][direction] or sort[0][sortField] parameters

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect SQL injection patterns in sorting parameters
  • Monitor application logs for requests to inventory endpoints with suspicious parameter values
  • Enable database query logging and alert on anomalous ORDER BY clauses
  • Deploy intrusion detection signatures targeting SQL injection in HTTP POST/GET parameters

Monitoring Recommendations

  • Set up real-time alerting for SQL syntax characters in inventory API requests (e.g., single quotes, semicolons, UNION keywords)
  • Monitor database server for unusual query execution times or error rates
  • Track user activity within the Commerce Inventory section for anomalous access patterns
  • Review authentication logs for compromised accounts with inventory access privileges

How to Mitigate CVE-2026-29174

Immediate Actions Required

  • Upgrade Craft Commerce to version 5.5.3 or later immediately
  • Review database access logs for any signs of exploitation prior to patching
  • Audit user accounts with access to the Commerce Inventory section
  • Consider temporarily restricting access to the inventory management feature until patched

Patch Information

Craft CMS has released version 5.5.3 of Craft Commerce which addresses this vulnerability. The fix implements strict allowlist validation for both the sorting direction and field parameters, ensuring only predefined safe values are accepted. Security patches are available via the GitHub Security Advisory GHSA-pmgj-gmm4-jh6j.

Relevant commits:

  • Commit 094d69d
  • Commit a2ea853

Workarounds

  • Restrict access to the Commerce Inventory section to only essential administrative users
  • Implement additional WAF rules to block SQL injection attempts targeting inventory endpoints
  • Deploy network-level filtering to limit access to administrative Craft CMS interfaces
  • Enable verbose logging on inventory-related endpoints to detect exploitation attempts
php
// Security patch implementation (src/controllers/InventoryController.php)
// Validates sorting inputs against allowlists
$field = $sort[0]['sortField'];
$direction = $sort[0]['direction'];

// Validate the sorting inputs
if (!in_array($direction, ['asc', 'desc']) ||
    !in_array($field, [
        'item',
        'sku',
        'reservedTotal',
        'damagedTotal',
        'safetyTotal',
        'qualityControlTotal',
        'committedTotal',
        'availableTotal',
        'onHandTotal',
        'incomingTotal',
    ])) {

    $field = null;
    $direction = null;
}

if ($field && $direction) {
    if ($field == 'sku') {
        $field = 'purchasables.sku';
    }
}

Source: GitHub Commit

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechCraftcms

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.01%

  • 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
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-pmgj-gmm4-jh6j
  • Related CVEs
  • CVE-2026-29172: Craft Commerce SQL Injection Vulnerability

  • CVE-2026-33159: Craft CMS Auth Bypass Vulnerability

  • CVE-2026-31859: Craft CMS Reflected XSS Vulnerability

  • CVE-2026-29175: Craftcms Craft Commerce 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