SecurityContext

CVE-2026-39979: jq - Out-of-Bounds Read

  • Cve: CVE-2026-39979
  • Name: jq - Out-of-Bounds Read
  • 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.
  • Impact: Attackers can cause memory disclosure or crash the process, leading to information leak or denial of service.
  • Remediation: Update to the version including commit 2f09060afab23fe9390cce7cb860b10416e1bf5f or later.
  • Vulnerability type: out_of_bounds_rw
  • Vulnerability impact: information_disclosure, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
  • Epss score: 0.00582
  • Epss percentile: 0.48493
  • Assignee: [email protected]
  • Published at: 2026-04-13T23:16:27Z
  • Age in days: 225
  • Modified at: 2026-10-26T22:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 23
  • Products total: 14
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-39979
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-125Out-of-bounds Read

Public exploits

UrlSourceAdded date
https://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355pnvd2026-04-13

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5fPatch
https://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355pExploit, Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:16252Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:16692Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:16693Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:18040Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:18042Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:18043Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:18044Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:18045Third Party Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
jqlang:jq< 1.8.2/v1/products/jqlang/jq
redhat:enterprise_linux= 10.0, = 9.0, = 8.0/v1/products/redhat/enterprise_linux
redhat:enterprise_linux_eus= 10.0, = 9.6, = 9.4, = 8.4/v1/products/redhat/enterprise_linux_eus
redhat:openshift_container_platform>= 4.19, < 4.19.33; >= 4.18, < 4.18.44; >= 4.17, < 4.17.55; >= 4.16, < 4.16.64; >= 4.15, < 4.15.65; >= 4.14, < 4.14.68; >= 4.13, < 4.13.68; >= 4.12, < 4.12.92/v1/products/redhat/openshift_container_platform
redhat:ansible_automation_platform= 2.0/v1/products/redhat/ansible_automation_platform
redhat:enterprise_linux_aus= 8.6, = 8.4/v1/products/redhat/enterprise_linux_aus
redhat:hardened_imagesall versions/v1/products/redhat/hardened_images
redhat:codeready_linux_builder= 10.0, = 9.0, = 8.0/v1/products/redhat/codeready_linux_builder
redhat:ceph_storage= 4.0/v1/products/redhat/ceph_storage
redhat:enterprise_linux_update_services_for_sap_solutions= 9.2, = 9.0, = 8.8, = 8.6/v1/products/redhat/enterprise_linux_update_services_for_sap_solutions

Projects

RepositoryLink kindsIndexedUrl
jqlang/jqcommit, fix, security_advisoryyes/v1/repositories/jqlang/jq

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-04-13
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts