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
    • 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-40324

CVE-2026-40324: Hot Chocolate GraphQL Server DOS Vulnerability

CVE-2026-40324 is a denial of service flaw in Hot Chocolate GraphQL server that allows attackers to crash the worker process via deeply nested payloads. This post explains the technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-40324 Overview

CVE-2026-40324 is a critical Denial of Service vulnerability affecting Hot Chocolate, an open-source GraphQL server for .NET. The vulnerability exists in the Utf8GraphQLParser recursive descent parser, which lacks a recursion depth limit. Attackers can exploit this by sending crafted GraphQL documents with deeply nested selection sets, object values, list values, or list types to trigger an uncatchable StackOverflowException, immediately terminating the worker process.

Critical Impact

A malicious GraphQL payload as small as 40 KB can crash the entire .NET worker process. Since StackOverflowException is uncatchable in .NET, all in-flight HTTP requests, background services, and WebSocket subscriptions are dropped instantly, requiring orchestrator restart.

Affected Products

  • Hot Chocolate GraphQL Server versions prior to 12.22.7
  • Hot Chocolate GraphQL Server versions prior to 13.9.16
  • Hot Chocolate GraphQL Server versions prior to 14.3.1
  • Hot Chocolate GraphQL Server versions prior to 15.1.14

Discovery Timeline

  • 2026-04-18 - CVE-2026-40324 published to NVD
  • 2026-04-20 - Last updated in NVD database

Technical Details for CVE-2026-40324

Vulnerability Analysis

This vulnerability is classified as CWE-674 (Uncontrolled Recursion). The Hot Chocolate GraphQL parser uses a recursive descent parsing strategy through the Utf8GraphQLParser class to process incoming GraphQL documents. The fundamental flaw is that recursive methods such as ParseSelectionSet, ParseValueLiteral, ParseObject, ParseList, and ParseTypeReference have no depth limit enforcement. When processing deeply nested structures, each recursive call consumes stack space until the stack is exhausted.

The attack is particularly severe because it occurs at the parsing phase—before any validation rules execute. This means protective measures like MaxExecutionDepth, complexity analyzers, persisted query allow-lists, and custom IDocumentValidatorRule implementations are completely bypassed. The existing MaxAllowedFields=2048 limit provides no protection since crashing payloads contain very few fields but deep nesting.

Root Cause

The root cause is the absence of recursion depth tracking and enforcement in the Utf8GraphQLParser class. The parser's recursive methods process nested GraphQL structures without maintaining or checking a depth counter, allowing unbounded recursion that exhausts the call stack. Since .NET's StackOverflowException has been uncatchable since .NET 2.0, the process terminates without any opportunity for graceful error handling.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker sends a specially crafted GraphQL query containing deeply nested structures (selection sets, objects, lists, or type references) to any exposed GraphQL endpoint. The payload can be as small as 40 KB and is highly compressible—potentially only a few hundred bytes when gzip-compressed—making it trivial to deliver through standard HTTP channels. Most reverse proxy and load balancer default body size limits are well above this threshold, providing no effective protection.

text
// Security patch in RequestParserOptions.cs - Add depth limit to GraphQL parser (#9531)

    /// as fields is an easier way to estimate query size for GraphQL requests.
    /// </summary>
    public int MaxAllowedFields { get; set; } = 2048;

+    /// <summary>
+    /// The maximum number of directives allowed per location (e.g. per field,
+    /// per operation, per fragment definition). Repeatable directives can be used
+    /// to exhaust CPU and memory resources if not limited.
+    /// </summary>
+    public int MaxAllowedDirectives { get; set; } = 4;
+
+    /// <summary>
+    /// The maximum allowed recursion depth when parsing a document.
+    /// This prevents stack overflow from deeply nested queries.
+    /// </summary>
+    public int MaxAllowedRecursionDepth { get; set; } = 200;
}

Source: ChilliCream Commit 08c0caa

Detection Methods for CVE-2026-40324

Indicators of Compromise

  • Unexpected worker process crashes or restarts in Kubernetes, IIS, or other orchestrators
  • Log entries indicating StackOverflowException in Hot Chocolate or GraphQL-related components
  • Abnormal pattern of GraphQL requests with unusually deep nesting structures
  • Compressed HTTP payloads to GraphQL endpoints that decompress to deeply nested documents
  • Sudden termination of WebSocket subscriptions and background IHostedService tasks

Detection Strategies

  • Monitor GraphQL endpoint logs for requests containing repetitive nesting patterns in selection sets or list types
  • Implement request body inspection at WAF or reverse proxy layer to detect deeply nested JSON/GraphQL structures
  • Track process restart frequency and correlate with incoming GraphQL traffic patterns
  • Deploy anomaly detection for GraphQL query complexity metrics before they reach the parser

Monitoring Recommendations

  • Configure alerting on worker process restart events in Kubernetes or IIS environments
  • Enable detailed logging for GraphQL request parsing failures and crashes
  • Monitor for unusual patterns in request body sizes and compression ratios
  • Implement real-time tracking of GraphQL endpoint availability and response times

How to Mitigate CVE-2026-40324

Immediate Actions Required

  • Upgrade Hot Chocolate to patched versions: 12.22.7, 13.9.16, 14.3.1, or 15.1.14 immediately
  • Review GraphQL endpoint exposure and consider temporarily restricting access if upgrade is delayed
  • Implement request body size limits at reverse proxy layer as a partial risk reduction measure
  • Monitor for process crashes and restart events while remediation is in progress

Patch Information

The fix introduces a new MaxAllowedRecursionDepth option to ParserOptions with a safe default value of 200. This limit is enforced across all recursive parser methods including ParseSelectionSet, ParseValueLiteral, ParseObject, ParseList, and ParseTypeReference. When the limit is exceeded, a catchable SyntaxException is thrown instead of overflowing the stack. The patch also adds MaxAllowedDirectives (default: 4) to prevent resource exhaustion via repeatable directives.

Patched releases are available:

  • Hot Chocolate v12.22.7
  • Hot Chocolate v13.9.16
  • Hot Chocolate v14.3.1
  • Hot Chocolate v15.1.14

For full details, see the ChilliCream Security Advisory GHSA-qr3m-xw4c-jqw3.

Workarounds

  • No application-level workaround exists—StackOverflowException cannot be caught in .NET
  • Reducing HTTP request body size at reverse proxy or load balancer provides partial risk reduction, but smallest crashing payload (40 KB) is below most default limits
  • Consider blocking GraphQL endpoints from untrusted sources until patching is complete
  • Upgrading to a patched version is the only complete mitigation
csharp
// After upgrading, configure parser options with custom limits if needed
services.AddGraphQLServer()
    .ModifyParserOptions(options =>
    {
        options.MaxAllowedRecursionDepth = 200; // Default safe value
        options.MaxAllowedDirectives = 4;       // Prevents directive exhaustion
        options.MaxAllowedFields = 2048;        // Existing field limit
    });

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechHot Chocolate

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-674
  • Technical References
  • ChilliCream Commit Update

  • ChilliCream Commit Update

  • ChilliCream Commit Update

  • ChilliCream Commit Update

  • ChilliCream Pull Request #9528

  • ChilliCream Pull Request #9530

  • ChilliCream Pull Request #9531

  • ChilliCream Release v12.22.7

  • ChilliCream Release v13.9.16

  • ChilliCream Release v14.3.1

  • ChilliCream Release v15.1.14

  • ChilliCream Security Advisory GHSA-qr3m-xw4c-jqw3
  • Latest CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

  • CVE-2026-43330: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43331: Linux Kernel DOS Vulnerability
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