The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-25495

CVE-2026-25495: Craft CMS SQL Injection Vulnerability

CVE-2026-25495 is a SQL injection flaw in Craft CMS affecting versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21. Attackers with Control Panel access can exploit the criteria[orderBy] parameter. This article covers technical details, affected versions, impact, and mitigation.

Published: February 13, 2026

CVE-2026-25495 Overview

CVE-2026-25495 is a SQL Injection vulnerability affecting Craft CMS, a popular platform for creating digital experiences. The vulnerability exists in the element-indexes/get-elements endpoint, where the criteria[orderBy] parameter in the JSON body is not properly sanitized before being used in database queries. This allows authenticated attackers with Control Panel access to inject arbitrary SQL into the ORDER BY clause, potentially leading to unauthorized data access, modification, or complete database compromise.

Critical Impact

Authenticated attackers can exploit this SQL Injection vulnerability to extract sensitive data, modify database contents, or potentially escalate privileges within the Craft CMS application.

Affected Products

  • Craft CMS versions 4.0.0-RC1 through 4.16.17
  • Craft CMS versions 5.0.0-RC1 through 5.8.21

Discovery Timeline

  • 2026-02-09 - CVE-2026-25495 published to NVD
  • 2026-02-09 - Last updated in NVD database

Technical Details for CVE-2026-25495

Vulnerability Analysis

This vulnerability is classified as CWE-89 (SQL Injection), occurring when user-controlled input is incorporated into SQL queries without proper sanitization. The element-indexes/get-elements endpoint accepts a JSON body containing criteria parameters that configure how elements are retrieved from the database. The criteria[orderBy] parameter is directly used in constructing the ORDER BY clause of SQL queries without validation or escaping.

An attacker with Control Panel access can exploit this vulnerability by omitting the viewState[order] parameter or setting both parameters to the same malicious payload. This allows injection of arbitrary SQL statements into the query, potentially enabling data exfiltration, data manipulation, or further exploitation of the underlying database system.

Root Cause

The root cause of this vulnerability is insufficient input validation in the ElementIndexesController.php file. The application directly accepts user-supplied values for query construction parameters including orderBy, where, select, groupBy, join, having, union, and other database query components without sanitization. This design flaw allows attackers to manipulate the structure and behavior of database queries.

Attack Vector

The vulnerability is exploited over the network by authenticated users with Control Panel access. The attack requires:

  1. Valid authentication credentials for the Craft CMS Control Panel
  2. Crafting a malicious JSON request to the element-indexes/get-elements endpoint
  3. Including SQL injection payloads in the criteria[orderBy] parameter
  4. Omitting or manipulating the viewState[order] parameter to ensure the malicious payload is processed

The following patch demonstrates how the vulnerability was addressed by removing unsupported and dangerous criteria attributes:

php
                    $criteria['draftOf'] = filter_var($criteria['draftOf'], FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);
                }
            }

            // Remove unsupported criteria attributes
            unset(
                $criteria['where'],
                $criteria['orderBy'],
                $criteria['indexBy'],
                $criteria['select'],
                $criteria['selectOption'],
                $criteria['from'],
                $criteria['groupBy'],
                $criteria['join'],
                $criteria['having'],
                $criteria['union'],
                $criteria['withQueries'],
                $criteria['params'],
            );

            Craft::configure($query, Component::cleanseConfig($criteria));
        }

Source: GitHub Commit Changes

Detection Methods for CVE-2026-25495

Indicators of Compromise

  • Unusual or malformed requests to the element-indexes/get-elements endpoint containing SQL syntax in JSON parameters
  • Database error logs showing SQL syntax errors or unexpected ORDER BY clause contents
  • Evidence of data exfiltration or unauthorized database queries in application or database logs
  • Anomalous Control Panel activity from compromised or suspicious user accounts

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect SQL injection patterns in JSON request bodies
  • Monitor access logs for repeated requests to /admin/element-indexes/get-elements with unusual parameter values
  • Enable detailed SQL query logging and alert on queries with unexpected ORDER BY clause structures
  • Deploy intrusion detection systems configured to identify SQL injection attack signatures

Monitoring Recommendations

  • Configure real-time alerting for SQL errors originating from the ElementIndexesController
  • Implement anomaly detection for Control Panel user activity patterns
  • Monitor database query execution times for unusually long-running queries that may indicate blind SQL injection attempts
  • Enable audit logging for all Control Panel authentication events and administrative actions

How to Mitigate CVE-2026-25495

Immediate Actions Required

  • Update Craft CMS to version 4.16.18 or 5.8.22 immediately
  • Review Control Panel access logs for evidence of exploitation attempts
  • Audit user accounts with Control Panel access and revoke unnecessary privileges
  • Implement network-level restrictions on Control Panel access if possible

Patch Information

Craft CMS has released security patches addressing this vulnerability. Users should update to the following versions:

  • Craft CMS 4.x: Update to version 4.16.18 or later
  • Craft CMS 5.x: Update to version 5.8.22 or later

Detailed patch information is available in the GitHub Security Advisory GHSA-2453 and the GitHub Release 5.8.22.

Workarounds

  • Restrict Control Panel access to trusted IP addresses using firewall rules or .htaccess configuration
  • Implement additional authentication layers (VPN, MFA) for Control Panel access
  • Deploy a Web Application Firewall with SQL injection detection rules in front of the Craft CMS application
  • Temporarily disable or restrict access to the element-indexes functionality if immediate patching is not possible
bash
# Example: Restrict Craft CMS Control Panel access by IP in nginx
location /admin {
    allow 192.168.1.0/24;
    allow 10.0.0.0/8;
    deny all;
    try_files $uri $uri/ /index.php?$query_string;
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechCraft

  • 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
  • Technical References
  • GitHub Commit Changes

  • GitHub Release 5.8.22

  • GitHub Security Advisory GHSA-2453
  • Related CVEs
  • CVE-2026-31858: Craft CMS SQL Injection Vulnerability

  • CVE-2026-27126: Craft CMS Stored XSS Vulnerability

  • CVE-2026-25491: Craft CMS Stored XSS Vulnerability

  • CVE-2026-25496: Craft CMS Stored XSS Vulnerability
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