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
33- osv-coords4 versionspkg:rpm/opensuse/jq&distro=openSUSE%20Tumbleweedpkg:rpm/almalinux/jq-develpkg:rpm/almalinux/jqpkg:rpm/opensuse/jq&distro=openSUSE%20Leap%2016.0
< 1.8.1-3.1+ 3 more
- (no CPE)range: < 1.8.1-3.1
- (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
- cpe:2.3:a:redhat:ai_inference_server:*:*:*:*:*:*:*:*Range: >=3.2.0,<3.2.2
- cpe:2.3:a:redhat:ansible_automation_platform:2.0:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:ceph_storage:4.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:codeready_linux_builder:8.0:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:a:redhat:codeready_linux_builder:8.0:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:codeready_linux_builder:9.0:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:codeready_linux_builder:10.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:codeready_linux_builder_eus:9.4:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:a:redhat:codeready_linux_builder_eus:9.4:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:codeready_linux_builder_eus:9.6:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:codeready_linux_builder_eus:10.0:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*Range: >=4.12,<4.12.92
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*+ 6 more
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_aus:8.4:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_aus:8.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_tus:8.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_tus:8.8:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_eus:8.4:*:*:*:*:*:*:*+ 3 more
- cpe:2.3:o:redhat:enterprise_linux_eus:8.4:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_eus:9.4:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_eus:9.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_eus:10.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_update_services_for_sap_solutions:8.6:*:*:*:*:*:*:*+ 3 more
- cpe:2.3:o:redhat:enterprise_linux_update_services_for_sap_solutions:8.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_update_services_for_sap_solutions:8.8:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_update_services_for_sap_solutions:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_update_services_for_sap_solutions:9.2:*:*:*:*:*:*:*
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:16252nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:16692nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:16693nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:18040nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:18042nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:18043nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:18044nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:18045nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:18046nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:18047nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:18048nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:19151nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:19365nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:23233nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:23245nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:25044nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:25096nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:25181nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:26528nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:26542nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:28887nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:30078nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:30087nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:30088nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:30089nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:34098nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:8579nvdThird Party Advisory
- access.redhat.com/security/cve/CVE-2026-39979nvdThird Party Advisory
- bugzilla.redhat.com/show_bug.cginvdIssue TrackingThird Party Advisory
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39979.jsonnvdThird Party Advisory
News mentions
0No linked articles in our index yet.