CVE-2026-39956: jq - Memory Corruption
- Cve: CVE-2026-39956
- Name: jq - Memory Corruption
- Description: jq is a command-line JSON processor. Prior to version 1.8.2, the _strindices builtin in jq's src/builtin.c passes its arguments directly to jv_string_indexes() without verifying they are strings, and jv_string_indexes() in src/jv.c relies solely on assert() checks that are stripped in release builds compiled with -DNDEBUG. This allows an attacker to crash jq trivially with input like _strindices(0), and by crafting a numeric value whose IEEE-754 bit pattern maps to a chosen pointer, achieve a controlled pointer dereference and limited memory read/probe primitive. Any deployment that evaluates untrusted jq filters against a release build is vulnerable. This issue has been patched in commit fdf8ef0f0810e3d365cdd5160de43db46f57ed03, which is part of version 1.8.2.
- Impact: Attackers can crash jq or perform limited memory read via controlled pointer dereference, potentially leading to information disclosure or denial of service.
- Remediation: Update to commit fdf8ef0f0810e3d365cdd5160de43db46f57ed03 or later.
- Vulnerability impact: denial_of_service, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- Epss score: 0.00181
- Epss percentile: 0.07575
- Assignee: [email protected]
- Published at: 2026-04-13T23:16:27Z
- Age in days: 225
- Modified at: 2026-10-26T21:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-39956
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, 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-6gc3-3g9p-xx28 | nvd | 2026-04-13 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/jqlang/jq/commit/fdf8ef0f0810e3d365cdd5160de43db46f57ed03 | nvd | Patch |
| https://github.com/jqlang/jq/security/advisories/GHSA-6gc3-3g9p-xx28 | nvd | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| jqlang:jq | >= 2026-04-02, < 2026-04-08 | no | nvd | /v1/products/jqlang/jq |
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
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts