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
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355p | nvd | 2026-04-13 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5f | Patch |
| https://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355p | Exploit, Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:16252 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:16692 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:16693 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:18040 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:18042 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:18043 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:18044 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:18045 | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| jqlang/jq | commit, fix, security_advisory | yes | /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