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

CVE-2026-43895: Jqlang Jq Path Traversal Vulnerability

CVE-2026-43895 is a path traversal flaw in Jqlang Jq that exploits NUL byte handling in import paths, allowing bypass of validation checks. This post covers technical details, affected versions, impact, and mitigation.

Published: May 18, 2026

CVE-2026-43895 Overview

CVE-2026-43895 affects jq, a widely deployed command-line JSON processor maintained by the jqlang project. In versions 1.8.1 and earlier, jq accepts embedded NUL bytes in import paths at the jq-language level but later resolves those paths through C string operations during module and data-file lookup. This mismatch allows the logical import string validated by policy or audit code to differ from the on-disk path that jq actually opens. The flaw is categorized under [CWE-20: Improper Input Validation].

Critical Impact

A local attacker with low privileges can bypass path-based policy checks and cause jq to open files different from those declared in the import statement, leading to limited confidentiality and integrity impact.

Affected Products

  • jqlang jq version 1.8.1
  • jqlang jq versions earlier than 1.8.1
  • Applications and pipelines embedding vulnerable jq releases for module or data-file imports

Discovery Timeline

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

Technical Details for CVE-2026-43895

Vulnerability Analysis

The vulnerability stems from inconsistent handling of NUL bytes between the jq language parser and the C-level filesystem layer. The jq language treats import path strings as length-delimited values, permitting embedded NUL (\\u0000) characters within them. When jq later resolves these paths for module loading or data-file lookup, it passes them to standard C library functions that treat NUL as a string terminator.

This discrepancy creates a parser differential. Code that audits or whitelists import strings sees the full logical path, including content after the NUL. The kernel and libc, however, see only the prefix before the NUL byte. An attacker can craft an import like "safe/path\\u0000../../etc/passwd" so policy validates the apparent target while jq opens a different file on disk.

The issue requires local access and low privileges, with no user interaction. Exploitation can disclose data the calling process can read or cause jq to consume unexpected file content as a module, undermining integrity guarantees of automated JSON-processing workflows.

Root Cause

The root cause is improper input validation [CWE-20] across an internal trust boundary. The jq-language layer and the C string layer disagree on what constitutes the end of a string, and no normalization or rejection of NUL bytes occurs before paths cross that boundary.

Attack Vector

Exploitation requires local execution of jq against attacker-influenced filter content or import paths. Common scenarios include shell pipelines that invoke jq on untrusted filter strings, build systems that load jq modules referenced by repository contents, and audit wrappers that pre-validate imports before invoking jq. The attack vector is local with low attack complexity and low privileges required. No verified public proof-of-concept code is available at this time. See the GitHub Security Advisory GHSA-7q7g-mrq3-phxr for technical details.

Detection Methods for CVE-2026-43895

Indicators of Compromise

  • Presence of embedded NUL (\\x00) bytes in jq filter strings, import statements, or include directives captured from process command lines or scripts
  • jq process opening files whose paths do not match the import strings recorded by upstream audit logging
  • Unexpected open() or openat() syscalls from jq targeting sensitive paths such as /etc/, user home directories, or credential stores

Detection Strategies

  • Inventory installed jq binaries across endpoints and servers and flag any version at or below 1.8.1
  • Inspect shell history, CI/CD job definitions, and automation scripts for jq invocations that pass externally sourced filter or import strings
  • Compare logical import strings recorded by application logs against actual file paths opened by jq, alerting on divergence

Monitoring Recommendations

  • Enable Linux auditd or equivalent telemetry on execve and openat events for the jq binary to surface anomalous file access
  • Ingest endpoint process and file telemetry into a centralized SIEM or data lake to correlate jq executions with sensitive file reads
  • Alert on any string passed to jq containing raw NUL bytes, which are not expected in legitimate filters

How to Mitigate CVE-2026-43895

Immediate Actions Required

  • Upgrade jq to a fixed release published after 1.8.1 as soon as it is distributed by your operating system or package repository
  • Audit applications, scripts, and CI/CD pipelines that pass untrusted input into jq filters or import paths
  • Reject or strip NUL bytes from any user-supplied data before it reaches a jq invocation

Patch Information

The jqlang project tracks remediation in GHSA-7q7g-mrq3-phxr. Apply the upstream fix from the jqlang repository or wait for downstream distribution packages that incorporate the patched release. Verify the installed version with jq --version after upgrading.

Workarounds

  • Run jq under a restricted user account with filesystem access limited to required directories using tools such as bwrap, firejail, or container sandboxes
  • Pre-validate all filter strings and import paths to reject inputs containing NUL bytes before invoking jq
  • Avoid passing untrusted JSON or filter content to jq instances that have access to sensitive files
bash
# Configuration example: reject NUL bytes before invoking jq
if printf '%s' "$JQ_FILTER" | grep -q $'\\x00'; then
  echo "Rejected: filter contains NUL byte" >&2
  exit 1
fi
jq "$JQ_FILTER" input.json

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechJqlang Jq

  • SeverityMEDIUM

  • CVSS Score4.4

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-20
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-43896: Jqlang Jq DOS Vulnerability

  • CVE-2026-44777: Jqlang Jq RCE Vulnerability

  • CVE-2026-43894: Jqlang Jq Buffer Overflow Vulnerability

  • CVE-2026-41257: 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