{"id":"CVE-2026-39956","aliases":["CVE-2026-39956"],"related":[],"kind":"vulnerability","state":"published","title":"jq: Missing runtime type checks for _strindices lead to crash and limited memory disclosure","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"jq es un procesador JSON de línea de comandos. En commits posteriores a 69785bf77f86e2ea1b4a20ca86775916889e91c9, la función _strindices incorporada en src/builtin.c de jq pasa sus argumentos directamente a jv_string_indexes() sin verificar que sean cadenas, y jv_string_indexes() en src/jv.c se basa únicamente en comprobaciones assert() que se eliminan en las compilaciones de lanzamiento compiladas con -DNDEBUG. Esto permite a un atacante bloquear jq trivialmente con una entrada como _strindices(0), y al elaborar un valor numérico cuyo patrón de bits IEEE-754 se mapea a un puntero elegido, lograr una desreferencia de puntero controlada y una primitiva limitada de lectura/sondeo de memoria. Cualquier despliegue que evalúe filtros jq no confiables contra una compilación de lanzamiento es vulnerable. Este problema ha sido parcheado en el commit fdf8ef0f0810e3d365cdd5160de43db46f57ed03.","source":"nvd"}],"published":"2026-04-13T22:10:18.817Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-125","CWE-476","CWE-843"],"affected":[{"ranges":[{"version":"< 1.8.2","status":"affected"}],"vendor":"jqlang","product":"jq","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2026-04-02","fixed":"2026-04-08"}],"vendor":"jqlang","product":"jq","cpe":"cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jqlang/jq/security/advisories/GHSA-6gc3-3g9p-xx28","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/jqlang/jq/commit/fdf8ef0f0810e3d365cdd5160de43db46f57ed03","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-04-14T15:34:20.696Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39956","url":"https://www.cve.org/CVERecord?id=CVE-2026-39956","licence":"CVE Terms of Use","modified":"2026-09-04T13:29:32.969Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39956","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39956","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.654Z","epss":{"score":0.00185,"percentile":0.08462,"date":"2026-12-01T12:00:22.000Z"}}