A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-37843

CVE-2024-37843: Craftcms Craft CMS SQLi Vulnerability

CVE-2024-37843 is a SQL injection vulnerability in Craftcms Craft CMS affecting versions up to v3.7.31 through the GraphQL API endpoint. This article covers the technical details, affected versions, and mitigation.

Published: April 8, 2026

CVE-2024-37843 Overview

CVE-2024-37843 is a SQL injection vulnerability affecting Craft CMS versions up to v3.7.31. The vulnerability exists within the GraphQL API endpoint, allowing attackers to inject malicious SQL queries through specially crafted GraphQL requests. This unauthenticated SQL injection flaw poses severe risks to organizations running affected versions of Craft CMS, potentially enabling complete database compromise.

Critical Impact

Unauthenticated attackers can exploit this SQL injection vulnerability through the GraphQL API to access, modify, or delete sensitive data from the backend database, potentially leading to complete system compromise.

Affected Products

  • Craft CMS versions up to and including v3.7.31
  • Any deployment with GraphQL API endpoint enabled
  • Craft CMS installations with network-accessible GraphQL endpoints

Discovery Timeline

  • 2024-06-25 - CVE-2024-37843 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-37843

Vulnerability Analysis

This SQL injection vulnerability (CWE-89) exists in Craft CMS's GraphQL API endpoint. The vulnerability allows unauthenticated attackers to inject arbitrary SQL commands through the GraphQL interface. The attack requires no privileges and can be executed remotely over the network without user interaction. Successful exploitation can result in complete compromise of confidentiality, integrity, and availability of the database and potentially the underlying system.

Root Cause

The root cause of CVE-2024-37843 lies in improper input sanitization within the GraphQL API query processing logic. User-supplied input passed through GraphQL queries is not adequately validated or parameterized before being incorporated into SQL statements. This allows malicious actors to break out of the intended query context and inject arbitrary SQL commands that are executed by the database.

Attack Vector

The attack vector is network-based, targeting the GraphQL API endpoint exposed by Craft CMS installations. Attackers can craft malicious GraphQL queries containing SQL injection payloads that bypass input validation. Since the vulnerability requires no authentication, any network-accessible Craft CMS installation with GraphQL enabled is potentially vulnerable. The attacker sends specially crafted GraphQL requests to the API endpoint, where the injected SQL commands are processed and executed against the backend database.

Detailed technical analysis of the exploitation technique is available in the Smith Security Blog Post, which documents the unauthenticated SQL injection vector via GraphQL.

Detection Methods for CVE-2024-37843

Indicators of Compromise

  • Unusual or malformed GraphQL queries in web server access logs containing SQL syntax characters such as single quotes, semicolons, or UNION statements
  • Database error messages appearing in application logs indicating SQL syntax errors
  • Unexpected database queries or data access patterns in database audit logs
  • Evidence of data exfiltration or unauthorized database modifications

Detection Strategies

  • Monitor web application firewall (WAF) logs for SQL injection patterns targeting GraphQL endpoints
  • Implement application-level logging for all GraphQL API requests and analyze for anomalous query structures
  • Deploy intrusion detection systems (IDS) with signatures for SQL injection attempts in HTTP POST bodies
  • Review database query logs for unauthorized SELECT, UNION, or administrative SQL commands

Monitoring Recommendations

  • Enable comprehensive logging on the GraphQL API endpoint and forward logs to a SIEM solution
  • Configure alerting for error responses from the GraphQL endpoint that may indicate injection attempts
  • Monitor for unusual database connection patterns or query execution times
  • Implement rate limiting on GraphQL endpoints to detect and slow enumeration attempts

How to Mitigate CVE-2024-37843

Immediate Actions Required

  • Upgrade Craft CMS to a patched version beyond v3.7.31 immediately
  • If immediate patching is not possible, disable the GraphQL API endpoint until the update can be applied
  • Implement web application firewall (WAF) rules to filter SQL injection patterns in GraphQL requests
  • Review database audit logs for evidence of exploitation and assess potential data compromise

Patch Information

Organizations should update Craft CMS to the latest available version that addresses this vulnerability. Consult the official Craft CMS release notes and security advisories for specific patch information. The Smith Security Blog Post provides additional context on the vulnerability that may assist in remediation efforts.

Workarounds

  • Disable the GraphQL API endpoint entirely if it is not required for business operations
  • Implement network-level access controls to restrict GraphQL endpoint access to trusted IP addresses only
  • Deploy a WAF with SQL injection detection rules specifically configured for GraphQL payloads
  • Enable prepared statements and parameterized queries at the application layer if custom code interacts with the database
bash
# Example: Disable GraphQL in Craft CMS config/general.php
# Add or modify the following configuration
'enableGql' => false,

# Alternative: Restrict GraphQL to authenticated users only
# In config/general.php
'enableGql' => true,
'enableGraphqlIntrospection' => false,

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechCraft Cms

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability89.43%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • Smith Security Blog Post
  • Related CVEs
  • CVE-2026-31858: Craft CMS SQL Injection Vulnerability

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

  • CVE-2026-44011: Craft CMS Remote Code Execution Vulnerability

  • CVE-2026-44010: Craft CMS Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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