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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-41257— jq: Signed-int overflow in `stack_reallocate` (jq VM stack)

AI Predicted 7.5 Difficulty: Moderate EPSS 0.01% · P2

Possible ATT&CK Techniques 1AI

T1190 · Exploit Public-Facing Application

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-41257

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: Signed-int overflow in `stack_reallocate` (jq VM stack)
Source: NVD (National Vulnerability Database)
Vulnerability Description
jq is a command-line JSON processor. In 1.8.1 and earlier, the jq bytecode VM's data stack tracks its allocation size in a signed int. When the stack grows beyond ≈1 GiB (via deeply nested generator forks), the doubling arithmetic overflows. The wrapped value is passed to realloc and then used for a memmove with attacker-influenced offsets.
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及之前版本存在输入验证错误漏洞,该漏洞源于jq字节码虚拟机数据栈分配大小使用有符号整数,当栈增长超过约1 GiB时,倍增算术溢出,可能导致传递给realloc的包装值被用于攻击者影响偏移量的memmove操作。
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-41257

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-41257

登录查看更多情报信息。

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-40612jq: Stack overflow via unbounded recursion in jv_contains
CVE-2026-44777jq: stack overflow in module loading on mutual `include`

IV. Related Vulnerabilities

V. Comments for CVE-2026-41257

No comments yet


Leave a comment