BreachSpiderVerified, not vibes

CVE-2026-39979 in Jqlang Jq

Medium 6.5

jq is a command-line JSON processor. In commits before 2f09060afab23fe9390cce7cb860b10416e1bf5f, the jv_parse_sized() API in libjq accepts a counted buffer with an explicit length parameter, but its error-handling path formats the input buffer using %s in jv_string_fmt(), which reads until a NUL terminator is found ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.5
CVSS v46.9
EPSS0.6%
EPSS percentile43th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no integrity impact.

Affected products and versions

VendorProductAffected versions
Jqlang Jq < 2026-04-12
Redhat Ai Inference Server ≥ 3.2.0, < 3.2.2 ≥ 3.3.0, < 3.3.5
Redhat Ansible Automation Platform 2.0
Redhat Ceph Storage 4.0
Redhat Codeready Linux Builder 8.0 9.0 10.0
Redhat Codeready Linux Builder Eus 9.4 9.6 10.0
Redhat Enterprise Linux 8.0 9.0 10.0
Redhat Enterprise Linux Aus 8.4 8.6
Redhat Enterprise Linux Eus 8.4 9.4 9.6 10.0
Redhat Enterprise Linux Tus 8.6 8.8
Redhat Enterprise Linux Update Services For Sap Solutions 8.6 8.8 9.0 9.2
Redhat Openshift Ai ≥ 3.4, < 3.4.3
Redhat Openshift Container Platform ≥ 4.12, < 4.12.92 ≥ 4.13, < 4.13.68 ≥ 4.14, < 4.14.68 ≥ 4.15, < 4.15.65 ≥ 4.16, < 4.16.64 ≥ 4.17, < 4.17.55
+2 more≥ 4.18, < 4.18.44 ≥ 4.19, < 4.19.33

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

jq is a command-line JSON processor. In commits before 2f09060afab23fe9390cce7cb860b10416e1bf5f, the jv_parse_sized() API in libjq accepts a counted buffer with an explicit length parameter, but its error-handling path formats the input buffer using %s in jv_string_fmt(), which reads until a NUL terminator is found rather than respecting the caller-supplied length. This means that when malformed JSON is passed in a non-NUL-terminated buffer, the error construction logic performs an out-of-bounds read past the end of the buffer. The vulnerability is reachable by any libjq consumer calling jv_parse_sized() with untrusted input, and depending on memory layout, can result in memory disclosure or process termination. The issue has been patched in commit 2f09060afab23fe9390cce7cb860b10416e1bf5f.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-39979
BreachSpider IDBS-2026-GLOBAL-151851-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Published2026-04-13
Last modified2026-10-26
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-125: Out-of-Bounds Read

Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.

Related attack patterns (CAPEC)

CAPEC-540 Overread Buffers via CWE-125

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2026-39979 affects jq versions prior to 2f09060afab23fe9390cce7cb860b10416e1bf5f. The jv_parse_sized() API in libjq mishandles error conditions by reading past the intended buffer length, potentially leading to information disclosure or other vulnerabilities.

An attacker could exploit this vulnerability by providing a specially crafted JSON input to jq, causing it to read memory beyond the intended buffer. This could lead to the exposure of sensitive information or other unspecified impacts.

Questions

What is CVE-2026-39979?

CVE-2026-39979 affects jq versions prior to 2f09060afab23fe9390cce7cb860b10416e1bf5f. The jv_parse_sized() API in libjq mishandles error conditions by reading past the intended buffer length, potentially leading to information disclosure or other vulnerabilities.

What is the CVSS score for CVE-2026-39979?

CVE-2026-39979 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L. EPSS: 0.6%.

Is CVE-2026-39979 actively exploited?

No confirmed active exploitation of CVE-2026-39979 as of 2026-11-03.

How do I remediate CVE-2026-39979?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2026-39979?

CVE-2026-39979 affects Jqlang Jq.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Jqlang","product":"Jq","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.