Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-39956— jq: Missing runtime type checks for _strindices lead to crash and limited memory disclosure

Quick assessment

Affected
jqlang jq
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

jq是jqlang开源的一个轻量级且灵活的命令行 JSON 处理器。 jq存在安全漏洞,该漏洞源于_strindices内置函数未验证参数类型,可能导致崩溃或受控指针取消引用。

CVSS 6.1 · Medium EPSS 0.17% · P5

Affected Version Matrix 1

VendorProduct Version RangeStatus
jqlang jq < 1.8.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-39956

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
jq: Missing runtime type checks for _strindices lead to crash and limited memory disclosure
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
跨界内存读
Source: CVE Program / CVE List V5
Vulnerability Title
jq 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
jq是jqlang开源的一个轻量级且灵活的命令行 JSON 处理器。 jq存在安全漏洞,该漏洞源于_strindices内置函数未验证参数类型,可能导致崩溃或受控指针取消引用。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
jqlang jq < 1.8.2 -

II. Public POCs for CVE-2026-39956

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-39956

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-39956 (1)

Same Patch Batch · jqlang · 2026-04-13 · 6 CVEs total

CVE-2026-32316 8.2 HIGH jq: Integer overflow in jvp_string_append() allows Heap-based Buffer Overflow
CVE-2026-40164 7.5 HIGH jq: Algorithmic complexity DoS via hardcoded MurmurHash3 seed
CVE-2026-33947 6.2 MEDIUM jq: Unbounded Recursion in jv_setpath(), jv_getpath() and delpaths_sorted()
CVE-2026-39979 jq: Out-of-Bounds Read in jv_parse_sized() Error Formatting for Non-NUL-Terminated Counted
CVE-2026-33948 jq: Embedded-NUL Truncation in CLI JSON Input Path Causes Prefix-Only Validation of Malfor

IV. Related Vulnerabilities

V. Comments for CVE-2026-39956

No comments yet


Leave a comment