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

CVE-2026-43894: Jqlang Jq Buffer Overflow Vulnerability

CVE-2026-43894 is a buffer overflow vulnerability in Jqlang Jq that allows attackers to write attacker-controlled data causing severe memory corruption. This post covers technical details, affected versions, and mitigation.

Published: May 18, 2026

CVE-2026-43894 Overview

CVE-2026-43894 is an integer overflow vulnerability [CWE-190] in jq, a widely deployed command-line JSON processor maintained by jqlang. The flaw affects version 1.8.1 and earlier. When decNumberFromString parses a decimal literal containing INT_MAX-1 (2,147,483,646) digits, the D2U() macro overflows during signed integer arithmetic. The wrapped negative value bypasses the heap-allocation size check, forcing the function to fall back to a 30-byte stack buffer. The function then writes approximately 715 million 16-bit units (~1.4 GiB) of attacker-controlled data at an offset 1.43 GiB below the current stack frame, producing a high-impact memory corruption condition.

Critical Impact

A local attacker who can supply a crafted JSON input to jq can trigger out-of-bounds stack writes of attacker-controlled content, leading to process crash or potential memory corruption with high availability impact.

Affected Products

  • jqlang jq version 1.8.1
  • jqlang jq versions prior to 1.8.1
  • Downstream Linux distributions and container images bundling vulnerable jq builds

Discovery Timeline

  • 2026-05-11 - CVE-2026-43894 published to the National Vulnerability Database
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-43894

Vulnerability Analysis

The vulnerability resides in decNumberFromString, the routine jq uses to parse arbitrary-precision decimal literals from JSON input. The function relies on the D2U() macro to compute how many 16-bit storage units (decNumberUnit) are required to hold a parsed digit string. D2U() performs signed 32-bit arithmetic on the digit count without bounding the input length.

When the digit count approaches INT_MAX, the intermediate expression inside D2U() overflows and produces a negative value. The subsequent allocation-size check compares this wrapped value against the threshold for switching from a small fixed stack buffer to heap allocation. Because the wrapped value is negative, the check incorrectly selects the 30-byte on-stack decNumberUnit buffer.

The parser then proceeds to write all 715 million packed digit units into the undersized stack buffer. The computed write offset lands approximately 1.43 GiB below the current stack frame, corrupting arbitrary memory along that range. The content written is fully attacker-controlled because each 16-bit unit is packed with three decimal digits taken directly from the input literal.

Root Cause

The root cause is an unchecked signed integer overflow inside the D2U() size macro [CWE-190]. The code assumes digit counts remain small enough to avoid wrapping, an invariant that no input validation enforces. A length sanity check on the parsed digit string before invoking D2U() would have prevented the overflow.

Attack Vector

Exploitation requires local access and the ability to feed crafted input to a jq process. An attacker provides a JSON document containing a number literal with roughly 2.1 billion decimal digits. Any pipeline, script, CI job, or service that invokes jq on attacker-controlled JSON is reachable. The CVSS vector identifies the impact as availability-only at this time, consistent with a memory corruption that reliably crashes the process. Reliable arbitrary code execution would require additional primitives given the large fixed write offset.

The vulnerability mechanism is documented in the jq GitHub Security Advisory GHSA-5v7p-2r57-2g4g.

Detection Methods for CVE-2026-43894

Indicators of Compromise

  • Unexpected jq process crashes, segmentation faults, or stack-smashing aborts on hosts that parse external JSON.
  • JSON input files or streams containing decimal number literals with digit counts in the hundreds of millions or billions.
  • jq invocations consuming abnormal amounts of memory or CPU shortly before termination.

Detection Strategies

  • Inventory all hosts, containers, and CI runners with jq installed and identify versions at or below 1.8.1 using package manager queries such as jq --version, dpkg -l jq, or rpm -q jq.
  • Scan ingestion pipelines that pipe untrusted JSON into jq and flag inputs whose raw size exceeds reasonable thresholds (for example, JSON payloads larger than a few megabytes that contain a single numeric token).
  • Correlate process exit codes and core dumps for jq with the source of the JSON input to identify suspicious patterns.

Monitoring Recommendations

  • Enable core dump collection and crash telemetry for shell environments and automation hosts that run jq.
  • Alert on repeated abnormal terminations of jq across a fleet, which can indicate scanning or fuzzing activity.
  • Track outbound and inbound JSON payload sizes in pipelines and reject inputs that exceed application-appropriate length limits before they reach jq.

How to Mitigate CVE-2026-43894

Immediate Actions Required

  • Upgrade jq to a fixed release once jqlang publishes a patched version above 1.8.1 across all servers, workstations, container images, and CI runners.
  • Audit shell scripts, automation jobs, and services that pass untrusted JSON to jq and place hard size limits on input.
  • Rebuild and redeploy container images that pin vulnerable jq versions in their base layers.

Patch Information

Reference the jq Security Advisory GHSA-5v7p-2r57-2g4g for the authoritative list of fixed versions and patch commits. Distribution maintainers typically publish backported builds shortly after upstream releases; consult vendor security trackers for Debian, Ubuntu, Red Hat, SUSE, and Alpine.

Workarounds

  • Reject or truncate JSON inputs larger than the maximum size your application legitimately requires before invoking jq.
  • Run jq under a resource-limited sandbox using ulimit -v or systemd MemoryMax= to contain the out-of-bounds write impact to a single process.
  • Where feasible, replace jq with a JSON parser whose numeric handling is bounded for paths that process untrusted input.
bash
# Configuration example: cap input size and constrain jq resources
MAX_BYTES=10485760  # 10 MiB ceiling for untrusted JSON
if [ "$(wc -c < "$INPUT")" -gt "$MAX_BYTES" ]; then
  echo "Input exceeds size limit" >&2
  exit 1
fi

# Run jq with restricted address space and CPU time
ulimit -v 524288   # 512 MiB virtual memory cap
ulimit -t 10      # 10 seconds CPU
jq '.' "$INPUT"

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechJqlang Jq

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-41257: Jqlang Jq Buffer Overflow Vulnerability

  • CVE-2025-48060: Jqlang Jq Buffer Overflow Vulnerability

  • CVE-2026-43896: Jqlang Jq DOS Vulnerability

  • CVE-2026-44777: Jqlang Jq RCE 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