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

CVE-2026-41256: Jqlang Jq RCE Vulnerability

CVE-2026-41256 is a remote code execution vulnerability in Jqlang Jq affecting versions 1.8.1 and earlier. Filter files with embedded NUL bytes can be exploited to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 18, 2026

CVE-2026-41256 Overview

CVE-2026-41256 affects jq, a widely used command-line JSON processor. The vulnerability exists in version 1.8.1 and earlier, including current upstream HEAD. Top-level jq programs loaded from a file with the -f flag are truncated at the first embedded NUL byte during compilation. A crafted filter file containing a benign prefix followed by \\x00 and a malicious suffix compiles and executes only the prefix before the NUL. This creates a prefix and full-buffer mismatch on the compilation path, even though the JSON parser path was previously fixed under CVE-2026-33948. The flaw is classified as improper handling of NUL bytes [CWE-158].

Critical Impact

An attacker who controls a jq filter file can hide malicious filter content past a NUL byte, bypassing integrity checks performed on the full file buffer while jq executes only the truncated prefix.

Affected Products

  • jqlang jq version 1.8.1
  • jqlang jq versions prior to 1.8.1
  • jqlang jq current upstream HEAD compilation path

Discovery Timeline

  • 2026-05-11 - CVE-2026-41256 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-41256

Vulnerability Analysis

The vulnerability stems from inconsistent string handling between the full-buffer integrity surface and the compilation path. When jq loads a filter program from a file using the -f option, the compilation routine treats the buffer as a C-style NUL-terminated string. Content after the first \\x00 byte is discarded silently during parsing and compilation.

Other code paths, such as file integrity checks or auditing tools, may operate on the full byte buffer. This asymmetry produces a prefix and full-buffer mismatch. A reviewer or scanner inspecting the entire file sees the complete content, while jq only executes the prefix.

The related CVE-2026-33948 addressed similar NUL truncation behavior in the JSON parser path. The compilation path was not patched at the same time, leaving this gap exposed.

Root Cause

The root cause is the use of NUL-terminated string semantics in the jq program compilation routine while upstream checks operate on length-delimited buffers. The compiler stops reading at \\x00, but the surrounding tooling does not. This mismatch is the classic pattern described by [CWE-158: Improper Neutralization of Null Byte or NUL Character].

Attack Vector

Exploitation requires local access and user interaction. An attacker crafts a filter file such as .\\x00<malicious_suffix> and convinces a user or automated pipeline to invoke jq -f against it. Review processes that inspect the entire file may approve content the jq compiler never executes, or conversely fail to detect that malicious filter content stored after the NUL is silently dropped. The integrity impact is high while confidentiality and availability are not directly affected, per the published CVSS vector.

Verified exploit code is not currently public, and no entries appear on Exploit-DB or in the CISA Known Exploited Vulnerabilities catalog. See the GitHub Security Advisory GHSA-vf2h-chrj-q3fg for upstream technical details.

Detection Methods for CVE-2026-41256

Indicators of Compromise

  • jq filter files (.jq or arbitrary extensions) containing one or more embedded \\x00 bytes when scanned as raw binary.
  • Discrepancies between the byte length of a filter file and the length of content parsed by jq during execution.
  • Audit logs showing jq -f <file> invocations against files that contain non-printable bytes.

Detection Strategies

  • Scan filter file repositories for embedded NUL bytes using tools such as grep -PaL '\\x00' or equivalent binary inspection utilities.
  • Compare hashes of filter files at rest against their parsed compiled forms to flag truncation mismatches.
  • Inspect process telemetry for jq invocations with the -f flag and correlate against file content inspections.

Monitoring Recommendations

  • Enable command-line argument logging on hosts that run jq in data processing or CI/CD pipelines.
  • Add file integrity monitoring for shared filter file directories to alert on writes containing control characters.
  • Track jq versions across the fleet and prioritize hosts still running 1.8.1 or earlier for upgrade.

How to Mitigate CVE-2026-41256

Immediate Actions Required

  • Inventory all systems running jq and identify any version at or below 1.8.1, including builds from upstream HEAD prior to the fix.
  • Audit existing .jq filter files for embedded NUL bytes and reject any file containing them.
  • Restrict the ability of untrusted users to supply filter files consumed by automated jq -f pipelines.

Patch Information

Refer to the upstream jq Security Advisory GHSA-vf2h-chrj-q3fg for the fixed release and patch commit details. Upgrade to the version designated by the jqlang maintainers as containing the compilation-path fix, and rebuild any downstream packages that vendor jq source.

Workarounds

  • Preprocess filter files to strip or reject NUL bytes before passing them to jq -f.
  • Inline jq filters on the command line rather than loading them from files when feasible.
  • Enforce strict file format validation in CI/CD systems that consume jq programs from version control.
bash
# Reject jq filter files containing embedded NUL bytes
if grep -qaP '\\x00' "$FILTER_FILE"; then
  echo "Refusing to run jq: filter file contains NUL byte" >&2
  exit 1
fi
jq -f "$FILTER_FILE" < input.json

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechJqlang Jq

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-158
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-44777: Jqlang Jq RCE Vulnerability

  • CVE-2026-43896: Jqlang Jq DOS Vulnerability

  • CVE-2026-43895: Jqlang Jq Path Traversal Vulnerability

  • CVE-2026-43894: Jqlang Jq Buffer Overflow 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