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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-13T22:18:56.252Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jqlang jq: < 2f09060afab23fe9390cce7cb860b10416e1bf5f; before 1.8.2
- jq: no versions given (not affected: from 0:1.7.1-11.el10_1.0.2 before *; from 0:1.7.1-11.el10_2.2 before *; from 0:1.7.1-8.el10_0.3 before *; from 0:1.6-12.el8_10 before *; from 0:1.5-12.el8_4.5 before *; from 0:1.6-3.el8_6.2 before *; from 0:1.6-6.el8_8.4 before *; from 0:1.6-19.el9_7.0.2 before *; from 0:1.6-19.el9_8.2 before *; from 0:1.6-12.el9_0.3 before *; from 0:1.6-15.el9_2.3 before *; from 0:1.6-16.el9_4.2 before *)
- rhcos: no versions given (not affected: from 412.86.202606140301-0 before *; from 413.92.202606160406-0 before *; from 414.92.202606231112-0 before *; from 415.92.202606030318-0 before *; from 416.94.202606051757-0 before *; from 417.94.202606250942-0 before *; from 418.94.202606051320-0 before *; from 4.19.9.6.202606031700-0 before *)
- rhaiis/model-opt-cuda-rhel9: no versions given (not affected: from 1780681984 before *; from 1782352950 before *)
- rhaiis/vllm-spyre-rhel9: no versions given (not affected: from 1782352919 before *)
- rhaiis/vllm-rocm-rhel9: no versions given (not affected: from 1782353093 before *)
- rhaiis/vllm-cuda-rhel9: no versions given (not affected: from 1782352847 before *)
- jq-main: no versions given (not affected: from 1.8.1-3.hum1 before *)
- ansible-automation-platform-26/controller-rhel9: no versions given
- ansible-automation-platform-26/hub-rhel9: no versions given
- automation-controller: no versions given
- redhat ai_inference_server: from 3.2.0 before 3.2.2; from 3.3.0 before 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 hardened_images: no versions given
- redhat openshift_ai: from 3.4 before 3.4.3
- redhat openshift_container_platform: from 4.12 before 4.12.92; from 4.13 before 4.13.68; from 4.14 before 4.14.68; from 4.15 before 4.15.65; from 4.16 before 4.16.64; from 4.17 before 4.17.55; from 4.18 before 4.18.44; from 4.19 before 4.19.33
- 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

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- redhat-SADP: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`

## References

- <https://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355p> (exploit, vendor-advisory)
- <https://github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5f> (patch)
- <https://access.redhat.com/security/cve/CVE-2026-39979> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2458077> (issue-tracking, third-party-advisory)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39979.json> (third-party-advisory)
- <https://access.redhat.com/errata/RHSA-2026:26528> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:26542> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28887> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:23233> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:25044> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:34098> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:25181> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:23245> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:16252> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:18048> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:18047> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:18046> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:18045> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:18044> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:18040> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:16692> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:19151> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:18043> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:18042> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:16693> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:19365> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:25096> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:30078> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:30089> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:30088> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:30087> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:8579> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2026-39979](https://www.cve.org/CVERecord?id=CVE-2026-39979), CVE Terms of Use, modified 2026-07-15
- NVD: [CVE-2026-39979](https://nvd.nist.gov/vuln/detail/CVE-2026-39979), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39979 · Whole record: https://cve.day/CVE-2026-39979.json · Rebuilt by cve.day 2026-11-25T22:59:18.655Z
