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

CVE-2026-40164: jq JSON Processor DoS Vulnerability

CVE-2026-40164 is a denial-of-service flaw in jq command-line JSON processor that exploits hash collisions to cause CPU exhaustion. This post explains its impact, affected versions, and mitigation steps.

Published: April 17, 2026

CVE-2026-40164 Overview

CVE-2026-40164 is an Algorithmic Complexity Attack vulnerability in jq, the widely-used command-line JSON processor. The vulnerability stems from the use of MurmurHash3 with a hardcoded, publicly visible seed (0x432A9843) for all JSON object hash table operations. This predictable seed allows attackers to precompute key collisions offline and craft malicious JSON payloads that cause severe CPU exhaustion when processed by jq.

Critical Impact

Attackers can cause significant denial of service by supplying a relatively small crafted JSON object (~100 KB) that degrades hash table performance from O(1) to O(n), resulting in O(n²) operation complexity and CPU exhaustion across CI/CD pipelines, web services, and data processing scripts.

Affected Products

  • jq versions prior to commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784
  • Applications and services utilizing vulnerable jq versions for JSON processing
  • CI/CD pipelines and automation scripts dependent on jq

Discovery Timeline

  • 2026-04-14 - CVE-2026-40164 published to NVD
  • 2026-04-14 - Last updated in NVD database

Technical Details for CVE-2026-40164

Vulnerability Analysis

This vulnerability exploits a fundamental weakness in jq's hash table implementation. The JSON processor relies on MurmurHash3 for efficient key lookups in JSON objects, but critically uses a hardcoded seed value that is publicly visible in the source code. When hash table operations use a predictable seed, an attacker can analyze the hashing algorithm and precompute sets of keys that all hash to the same bucket value.

Under normal operation, hash tables provide O(1) average-case lookup performance by distributing keys across buckets. However, when multiple keys collide into the same bucket, the hash table degrades to a linked list traversal, resulting in O(n) lookup time per operation. For JSON processing that involves multiple lookups across all keys, this transforms typical operations into O(n²) complexity.

What makes this vulnerability particularly concerning is its practicality. Unlike memory corruption vulnerabilities that may require precise exploitation conditions, this attack requires only a carefully crafted JSON payload of approximately 100 KB—well within typical API payload limits and easily delivered through standard channels.

Root Cause

The root cause is the use of a hardcoded cryptographic seed (0x432A9843) in the MurmurHash3 implementation used for JSON object hash tables. This seed is embedded directly in the jq source code and never randomized at runtime. The weakness is classified under CWE-328 (Reversible One-Way Hash), as the predictable seeding undermines the hash function's resistance to collision attacks.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker constructs a JSON object containing approximately 100 KB of data where all keys are carefully selected to produce hash collisions when processed with the known seed. When jq parses and processes this malicious JSON, every key lookup operation traverses the same bucket, causing exponential performance degradation.

Common attack scenarios include:

The vulnerability affects any jq expression processing untrusted JSON input. This includes web services that use jq for API response transformation, CI/CD pipelines parsing configuration or artifact metadata, log processing systems, and data transformation scripts accepting external input.

Detection Methods for CVE-2026-40164

Indicators of Compromise

  • Unusual CPU spikes when jq processes specific JSON inputs
  • Processing time anomalies where small JSON payloads take disproportionately long to complete
  • Memory allocation patterns showing abnormal hash table bucket distributions
  • Repeated timeout events in services utilizing jq for JSON processing

Detection Strategies

  • Monitor CPU utilization metrics for processes executing jq commands with external input
  • Implement input size and complexity thresholds for JSON payloads before jq processing
  • Deploy application-level logging to track jq execution duration against payload size ratios
  • Analyze network traffic for JSON payloads with suspicious key patterns or unusual key repetition structures

Monitoring Recommendations

  • Configure alerting for jq process CPU consumption exceeding baseline thresholds
  • Implement timeout mechanisms for jq operations processing untrusted input
  • Enable detailed logging of JSON payload characteristics including key counts and sizes
  • Review and audit systems where jq processes externally-supplied JSON data

How to Mitigate CVE-2026-40164

Immediate Actions Required

  • Update jq to a version containing commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784 or later
  • Audit all systems and pipelines utilizing jq for JSON processing
  • Implement input validation and size limits for JSON payloads processed by jq
  • Consider temporary workarounds if immediate patching is not feasible

Patch Information

The vulnerability has been addressed in jq commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784. This patch modifies the hash table implementation to use randomized seeding, preventing attackers from precomputing collision sets. Organizations should update to a jq version that includes this commit.

For detailed patch information, refer to the GitHub Commit and the GitHub Security Advisory GHSA-wwj8-gxm6-jc29.

Workarounds

  • Implement strict input validation to reject JSON objects with excessive key counts
  • Apply resource limits (cgroups, ulimit) to constrain CPU time for jq processes
  • Use preprocessing to sanitize or limit JSON complexity before jq processing
  • Consider alternative JSON processing tools for untrusted input until patching is complete
bash
# Example: Limit jq CPU time using timeout
timeout 5s jq '.data' input.json

# Example: Validate JSON key count before processing
KEY_COUNT=$(jq 'if type == "object" then keys | length else 0 end' input.json)
if [ "$KEY_COUNT" -gt 1000 ]; then
    echo "JSON object exceeds maximum key limit"
    exit 1
fi

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechJq

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

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

  • GitHub Security Advisory GHSA-wwj8-gxm6-jc29
  • Related CVEs
  • CVE-2026-33947: jq JSON Processor DoS Vulnerability

  • CVE-2026-39956: jq JSON Processor Use-After-Free Vulnerability

  • CVE-2026-33948: jq JSON Processor Disclosure Vulnerability

  • CVE-2026-32316: jq JSON Processor Buffer Overflow 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