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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-43894— jq: Wild stack write via signed-integer overflow in decNumber D2U() macro

CVSS 6.2 · Medium EPSS 0.01% · P3

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

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: Wild stack write via signed-integer overflow in decNumber D2U() macro
Source: NVD (National Vulnerability Database)
Vulnerability Description
jq is a command-line JSON processor. In 1.8.1 and earlier, when decNumberFromString is given a number literal of INT_MAX-1 (2147483646) digits, the D2U() macro overflows during signed-int arithmetic. The wrapped negative value bypasses the heap-allocation size check, causes the function to use a 30-byte stack buffer, and then writes ≈715 million 16-bit units (≈1.4 GiB) at an offset 1.43 GiB below the stack frame. The written content is fully attacker-controlled (the parsed decimal digits, packed 3-per-unit).
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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及之前版本存在输入验证错误漏洞,该漏洞源于当decNumberFromString接收INT_MAX-1位数字文字时,D2U()宏在带符号整数算术期间溢出,包装的负值绕过堆分配大小检查,导致函数使用30字节栈缓冲区并写入约7.15亿个16位单元。
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-43894

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-43894

登录查看更多情报信息。

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

CVE-2026-438966.2 MEDIUMjq: Stack Overflow in Recursive Object Merge
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-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-43894

No comments yet


Leave a comment