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

Goal: 1000 CNY · Raised: 1020 CNY

100%

CVE-2026-40612— jq: Stack overflow via unbounded recursion in jv_contains

AI Predicted 7.5 Difficulty: Easy EPSS 0.01% · P2

Possible ATT&CK Techniques 1AI

T1496 · Resource Hijacking

Affected Version Matrix 1

VendorProductVersion RangeStatus
jqlangjq<= 1.8.1affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-40612

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: Stack overflow via unbounded recursion in jv_contains
Source: NVD (National Vulnerability Database)
Vulnerability Description
jq is a command-line JSON processor. In 1.8.1 and earlier, jv_contains recurses into nested arrays/objects with no depth limit. With a sufficiently nested input structure (built programmatically with reduce, since the JSON parser caps at depth 10000), the C stack is exhausted.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
未经控制的递归
Source: NVD (National Vulnerability Database)
Vulnerability Title
jq 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
jq是jqlang开源的一个轻量级且灵活的命令行 JSON 处理器。 jq 1.8.1及之前版本存在安全漏洞,该漏洞源于jv_contains函数递归嵌套数组/对象时无深度限制,可能导致C栈耗尽。
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

VendorProductAffected VersionsCPESubscribe
jqlangjq <= 1.8.1 -

II. Public POCs for CVE-2026-40612

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40612

登录查看更多情报信息。

Same Patch Batch · jqlang · 2026-05-11 · 7 CVEs total

CVE-2026-438966.2 MEDIUMjq: Stack Overflow in Recursive Object Merge
CVE-2026-438946.2 MEDIUMjq: Wild stack write via signed-integer overflow in decNumber D2U() macro
CVE-2026-412565.5 MEDIUMjq: Embedded NUL truncates top-level jq programs loaded with -f
CVE-2026-438954.4 MEDIUMjq: Embedded NUL in jq import paths causes local redaction-policy bypass and preserves sen
CVE-2026-41257jq: Signed-int overflow in `stack_reallocate` (jq VM stack)
CVE-2026-44777jq: stack overflow in module loading on mutual `include`

IV. Related Vulnerabilities

V. Comments for CVE-2026-40612

No comments yet


Leave a comment