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

CVE-2026-41257: Jqlang Jq Buffer Overflow Vulnerability

CVE-2026-41257 is a buffer overflow flaw in Jqlang Jq affecting version 1.8.1 and earlier. The stack overflow occurs when processing deeply nested data. This article covers technical details, impact, and mitigations.

Published: May 18, 2026

CVE-2026-41257 Overview

CVE-2026-41257 is an integer overflow vulnerability in jq, the widely used command-line JSON processor maintained by the jqlang project. The flaw affects version 1.8.1 and earlier. The jq bytecode virtual machine (VM) tracks its data stack allocation size in a signed integer. When the stack grows beyond approximately 1 GiB through deeply nested generator forks, the doubling arithmetic overflows. The wrapped value is then passed to realloc and used in a memmove call with attacker-influenced offsets. This creates a memory corruption condition that can lead to local code execution when a victim processes a crafted jq program or filter.

Critical Impact

Processing untrusted jq filters can trigger heap memory corruption with attacker-controlled offsets, enabling local code execution and integrity loss.

Affected Products

  • jqlang jq version 1.8.1
  • jqlang jq versions prior to 1.8.1
  • Applications and scripts that pass untrusted input as jq programs or filters

Discovery Timeline

  • 2026-05-11 - CVE-2026-41257 published to the National Vulnerability Database (NVD)
  • 2026-05-13 - Last updated in NVD database
  • 2026-05-17 - EPSS scoring data published

Technical Details for CVE-2026-41257

Vulnerability Analysis

The vulnerability is classified under [CWE-190: Integer Overflow or Wraparound]. The jq bytecode VM maintains an internal data stack used during filter evaluation. The capacity of this stack is stored in a signed int. When jq evaluates deeply nested generator forks, the stack expansion routine doubles the current capacity each time it needs to grow. Once the tracked size approaches the signed integer maximum near 1 GiB, the doubling operation overflows and produces a small or negative value.

The wrapped value flows into a realloc call, producing an undersized heap allocation. Subsequent stack operations invoke memmove using offsets derived from the original (large) logical stack size. This writes past the bounds of the shrunken buffer, corrupting adjacent heap metadata and chunks. An attacker who controls the jq filter being executed can shape the offsets and content of the corrupting writes.

Root Cause

The root cause is the use of a signed int to track an allocation size that scales with attacker-controlled program depth. The size variable is not validated against INT_MAX before the doubling multiplication. There is no saturating arithmetic or pre-allocation overflow check inside the stack growth routine.

Attack Vector

Exploitation is local and requires user interaction. A victim must execute jq against an attacker-supplied filter or pipeline that constructs deeply nested generators sufficient to force the data stack past the 1 GiB threshold. Common exposure paths include build scripts, CI/CD jobs, data processing pipelines, and helper utilities that accept user-provided jq expressions.

No verified public proof-of-concept code is available. The technical mechanism is described in the GitHub Security Advisory GHSA-4jm8-m363-4539.

Detection Methods for CVE-2026-41257

Indicators of Compromise

  • jq processes consuming sustained memory above 1 GiB before crashing or aborting
  • Crash artifacts referencing realloc, memmove, or stack growth functions in jq core
  • Unexpected jq invocations spawned from web servers, build agents, or data pipelines that accept user-supplied filters

Detection Strategies

  • Inventory hosts and container images running jq and identify versions at or below 1.8.1 using package managers or jq --version
  • Monitor process telemetry for jq invocations with abnormally long command lines or filter arguments sourced from untrusted input
  • Review CI/CD pipelines and shell scripts for places where external data is interpolated directly into a jq filter argument

Monitoring Recommendations

  • Alert on jq child processes terminating with SIGABRT, SIGSEGV, or out-of-memory conditions on production systems
  • Track resident set size (RSS) growth of jq processes exceeding 512 MiB as an early signal of abusive filter execution
  • Correlate jq crashes with the originating parent process to identify pipelines exposing untrusted filter input

How to Mitigate CVE-2026-41257

Immediate Actions Required

  • Upgrade jq to the fixed release referenced in GHSA-4jm8-m363-4539 across all endpoints, servers, and container base images
  • Audit applications that pass user input into jq filters and treat such inputs as untrusted code
  • Rebuild and redeploy container images that bundle vulnerable jq binaries

Patch Information

The jqlang maintainers published a security advisory at GHSA-4jm8-m363-4539 covering versions 1.8.1 and earlier. Apply the upstream fix from the official jqlang/jq repository or the corresponding distribution package once available.

Workarounds

  • Restrict jq execution to trusted, hard-coded filter expressions and never concatenate untrusted strings into the filter argument
  • Enforce per-process resource limits using ulimit -v or systemd MemoryMax= to cap jq memory below 1 GiB, preventing the overflow path from being reached
  • Run jq inside a sandbox such as a restricted container, seccomp profile, or unprivileged user when processing data of unknown origin
bash
# Configuration example: cap jq memory and run as unprivileged user
ulimit -v 524288  # 512 MiB virtual memory cap
sudo -u nobody jq -r '.field' < trusted-input.json

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 Score6.4

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/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
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-43894: 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