CVE-2026-40612 MEDIUM

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

Vendor Jqlang
Product jq
Weakness CWE-674
Published May 11, 2026
Last update May 11, 2026

CVSS base score

5.4/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

May 11, 2026 CVE published
May 11, 2026 Record updated