Back to CVE records
Medium 6.9Published Apr 13, 2026

CVE-2026-39979jq: Out-of-Bounds Read in jv_parse_sized() Error Formatting for Non-NUL-Terminated Counted Buffers

Updated under an hour ago ()

Does this affect you?

It affects jqlang jq and 20 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
6.9 MEDIUM (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
Weakness (CWE)
CWE-125
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Jul 14, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
jqlang jq
jqlang:jq (from the name)
before 2f09060afab23fe9390cce7cb860b10416e1bf5f
CNA record
from 0:1.7.1-11.el10_1.0.2 not affected; from 0:1.7.1-11.el10_2.2 not affected
CISA ADP
from 0:1.7.1-8.el10_0.3 not affected
CISA ADP
from 0:1.5-12.el8_4.5 not affected
CISA ADP
from 0:1.5-12.el8_4.5 not affected
CISA ADP
from 0:1.6-3.el8_6.2 not affected
CISA ADP
from 0:1.6-3.el8_6.2 not affected
CISA ADP
from 0:1.6-16.el9_4.2 not affected
CISA ADP
from 412.86.202606140301-0 not affected
CISA ADP
Red Hat Red Hat AI Inference Server 3.2
redhat:ai_inference_server
from 1780681984 not affected
CISA ADP

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.