Skip to main content

jq EUVDEUVD-2026-29173

| CVE-2026-43895 MEDIUM
Improper Input Validation (CWE-20)
2026-05-11 GitHub_M
4.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft jq script with NUL-injected import path
  2. Delivery
    Pass validation check at policy layer
  3. Exploit
    Invoke jq with malicious script
  4. Execution
    jq's C resolver truncates at NUL byte
  5. Persist
    Opens unintended file
  6. Impact
    Read or execute contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires: (1) local user access to the system (AV:L satisfies this); (2) ability to provide or influence a jq script input (e.g., via a configuration file, API parameter, or interactive invocation); (3) a policy or validation mechanism that checks import paths but does not account for NUL bytes - if no validation exists, the vulnerability has no security impact beyond standard file access controls; (4) the targeted file must be readable by the jq process user (PR:L indicates low privilege, so files readable by that user are at risk). No special jq configuration is required; default module resolution behavior is vulnerable. Attack is blocked if: (a) jq runs with restrictive file permissions or SELinux/AppArmor confinement, (b) the user cannot provide NUL bytes in jq input (e.g., through strict input sanitization upstream), or (c) jq runs as an unprivileged user with no access to sensitive files.

Impact

CVSS 4.4 with local attack vector (AV:L) and low privilege requirement (PR:L) indicates limited scope but non-negligible impact. CVSS vector shows confidentiality and integrity impacts (C:L/I:L) without availability impact. The vulnerability requires local access and authenticated user execution, which narrows the attack surface compared to remote exploitation. However, the impact is amplified if jq is used in policy-enforced environments (e.g., containerized sandboxes, multi-tenant systems, or CI/CD pipelines) where NUL byte injection could bypass security policies that audit or restrict module imports. The low CVSS score reflects the authentication and local-only requirements, but real risk depends on deployment context: jq used to process untrusted JSON with restricted import paths faces policy-bypass risk, while jq used casually faces minimal risk. No EPSS score or KEV status provided; no public exploit identified at time of analysis, suggesting limited active exploitation despite policy-bypass nature.

Exploit ScenarioDerived

An attacker with local user access crafts a jq script containing an import statement like 'import "trusted/module\x00../../../../etc/passwd" as mod;'. Policy validation code checks the logical path 'trusted/module' and approves it; however, when jq resolves the import, the C string terminator at the NUL byte causes the actual file opened to be '../../../../etc/passwd', allowing the attacker to read sensitive system files or load malicious jq code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 11, 2026

jq versions 1.8.1 and earlier allow local authenticated users to bypass import path validation through NUL byte injection, enabling access to unintended files and potential information disclosure. An attacker with local access can craft a jq script containing embedded NUL bytes in import paths that pass policy validation checks but resolve to arbitrary files on disk via C string operations, circumventing intended access controls.

RemediationAI

Update jq to the patched version released after 1.8.1 (exact version to be confirmed from GitHub security advisory GHSA-7q7g-mrq3-phxr at https://github.com/jqlang/jq/security/advisories/GHSA-7q7g-mrq3-phxr). As an immediate compensating control, restrict filesystem permissions to prevent local users from accessing sensitive files that jq might load, enforce SELinux or AppArmor policies to limit jq's file access regardless of path resolution, and audit jq scripts for NUL byte usage (grep for '\x00', '\000', or null bytes in import statements). If jq must process untrusted scripts, run it in a strict chroot or container with minimal filesystem visibility. Note that these controls do not address the root cause but reduce exploitability.

Affected VersionsENISA

jq ≤ 1.8.1

Affected Packages

euvd jq no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

jq is a command-line JSON processor that supports module imports and data-file loading via import/include statements. The vulnerability stems from a mismatch between jq's language-level path handling (which accepts NUL bytes as valid characters) and the underlying C string operations used during filesystem resolution. C strings are NUL-terminated, so a path like 'safe/file\x00../../secret' is validated as 'safe/file' at the policy level but resolves to '../../secret' when passed to C functions like open(). This is a classic null-byte truncation attack against policy enforcement mechanisms (CWE-20: Improper Input Validation). The vulnerability affects the module system's ability to enforce access policies on which files jq can load.

Know when Jq gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 4.4 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
SUSE MEDIUM
Red Hat 4.4 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

jq is a command-line JSON processor. In 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 creates a mismatch between the logical import string that policy or audit code may validate and the on-disk path that jq actually opens.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Jq

View all
CVE-2024-53427 HIGH POC
8.1 Feb 26

decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which ha

CVE-2015-8863 CRITICAL
9.8 May 06

Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote attackers to cause a denial of service (cras

CVE-2025-48060 HIGH POC
7.7 May 21

jq is a command-line JSON processor. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, no auth

CVE-2016-4074 HIGH POC
7.5 May 06

The jv_dump_term function in jq 1.5 allows remote attackers to cause a denial of service (stack consumption and applicat

CVE-2023-49355 HIGH POC
7.5 Dec 11

decToString in decNumber/decNumber.c in jq 88f01a7 has a one-byte out-of-bounds write via the " []-1.2e-1111111111" inpu

CVE-2023-50268 MEDIUM POC
5.5 Dec 13

jq is a command-line JSON processor. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Publ

CVE-2023-50246 MEDIUM POC
5.5 Dec 13

jq is a command-line JSON processor. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Publ

CVE-2026-32316 HIGH
7.5 Apr 13

A heap-based buffer overflow in jqlang/jq through version 1.8.1 allows remote, unauthenticated attackers to crash - and

CVE-2026-49839 HIGH
7.1

Out-of-bounds write in the jq command-line JSON processor (CWE-787) lets a crafted JSON input corrupt memory when parsed

CVE-2026-54679 MEDIUM
6.9

jq, the command-line JSON processor, was patched in Alpine Linux with package version 1.8.2-r0. The specific vulnerabili

CVE-2026-39979 MEDIUM
6.9 Apr 13

Out-of-bounds read in libjq's jv_parse_sized() API exposes any embedding application to memory disclosure or process ter

CVE-2026-47770 MEDIUM
6.8

jq on Alpine Linux was patched in package version 1.8.2-r0, addressing an unspecified vulnerability. The nature of the f

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Fixed
SLES15-SP6-CHOST-BYOS Fixed
SLES15-SP6-CHOST-BYOS-Aliyun Fixed
SLES15-SP6-CHOST-BYOS-Azure Fixed
SLES15-SP6-CHOST-BYOS-EC2 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy