CVE-2026-39979
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
6- osv-coords4 versionspkg:rpm/almalinux/jqpkg:rpm/almalinux/jq-develpkg:rpm/opensuse/jq&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/jq&distro=openSUSE%20Tumbleweed
< 1.6-12.el8_10+ 3 more
- (no CPE)range: < 1.6-12.el8_10
- (no CPE)range: < 1.6-12.el8_10
- (no CPE)range: < 1.7.1-160000.3.1
- (no CPE)range: < 1.8.1-3.1
Patches
Vulnerability mechanics
References
32- github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5fnvdPatch
- github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355pnvdExploitVendor Advisory
- access.redhat.com/errata/RHSA-2026:16252nvd
- access.redhat.com/errata/RHSA-2026:16692nvd
- access.redhat.com/errata/RHSA-2026:16693nvd
- access.redhat.com/errata/RHSA-2026:18040nvd
- access.redhat.com/errata/RHSA-2026:18042nvd
- access.redhat.com/errata/RHSA-2026:18043nvd
- access.redhat.com/errata/RHSA-2026:18044nvd
- access.redhat.com/errata/RHSA-2026:18045nvd
- access.redhat.com/errata/RHSA-2026:18046nvd
- access.redhat.com/errata/RHSA-2026:18047nvd
- access.redhat.com/errata/RHSA-2026:18048nvd
- access.redhat.com/errata/RHSA-2026:19151nvd
- access.redhat.com/errata/RHSA-2026:19365nvd
- access.redhat.com/errata/RHSA-2026:23233nvd
- access.redhat.com/errata/RHSA-2026:23245nvd
- access.redhat.com/errata/RHSA-2026:25044nvd
- access.redhat.com/errata/RHSA-2026:25096nvd
- access.redhat.com/errata/RHSA-2026:25181nvd
- access.redhat.com/errata/RHSA-2026:26528nvd
- access.redhat.com/errata/RHSA-2026:26542nvd
- access.redhat.com/errata/RHSA-2026:28887nvd
- access.redhat.com/errata/RHSA-2026:30078nvd
- access.redhat.com/errata/RHSA-2026:30087nvd
- access.redhat.com/errata/RHSA-2026:30088nvd
- access.redhat.com/errata/RHSA-2026:30089nvd
- access.redhat.com/errata/RHSA-2026:34098nvd
- access.redhat.com/errata/RHSA-2026:8579nvd
- access.redhat.com/security/cve/CVE-2026-39979nvd
- bugzilla.redhat.com/show_bug.cginvd
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39979.jsonnvd
News mentions
0No linked articles in our index yet.