{"id":"DHI-a57l-xb7h-knt3-3nqa","summary":"jq is a command-line JSON processor. Prior to version 1.8.2, the _strindices builtin in jq's src/builtin.c passes its…","details":"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.","modified":"2026-11-21T03:30:03.571924380Z","published":"2026-11-11T19:05:15Z","upstream":["CVE-2026-39956"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-a57l-xb7h-knt3-3nqa"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39956"},{"type":"ADVISORY","url":"https://github.com/jqlang/jq/security/advisories/GHSA-6gc3-3g9p-xx28"},{"type":"FIX","url":"https://github.com/jqlang/jq/commit/fdf8ef0f0810e3d365cdd5160de43db46f57ed03"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-39956"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2/ALAS-2026-3496.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-47770"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-43896"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-40164"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39979"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39956"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33948"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33947"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-32316"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1815.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-43894"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-39956"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-39956"},{"type":"FIX","url":"https://www.cve.org/CVERecord?id=CVE-2026-39956"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-39956"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-39956"}],"affected":[{"package":{"name":"jq","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/jq"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.2_git20260622-r1"}]}],"versions":["1.8.1-r0","1.8.1_git20260429-r1","1.8.2-r1"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-a57l-xb7h-knt3-3nqa.json"}},{"package":{"name":"jq","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/jq"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.2_git20260622-r1"}]}],"versions":["1.8.1_git20260609-r1","1.8.2-r1"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-a57l-xb7h-knt3-3nqa.json"}},{"package":{"name":"jq","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/jq"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.1-6+deb13u2+dhi0"},{"introduced":"1.8.1-5"},{"fixed":"1.8.2-1+deb13u0+dhi1"}]}],"versions":["1.7.1-6+deb13u1dhi0","1.7.1-6+deb13u2dhi0","1.8.1-5"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-a57l-xb7h-knt3-3nqa.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H"}]}