CVE 5.4 MEDIUM

jq: Stack overflow via unbounded recursion in jv_contains_CVE-2026-40612

5.4 / 10
MEDIUM
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

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.

Basic Information

ID CVE-2026-40612
Source GitHub_M
Published May 11, 2026 at 17:16
Modified May 11, 2026 at 18:23

Affected Product

Vendor jqlang
Product jq
Version <= 1.8.1
Affected Versions jqlang jq <= 1.8.1

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.