← CVE Intelligence

CVE-2026-40612

jq: Stack overflow via unbounded recursion in jv_contains PUBLISHED

Description (CNA)

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.

Affected (CNA)

Vendor / productVersions
jqlang / jqaffected <= 1.8.1

CWE

CWE-674

References

ADP enrichment

CISA-ADP

No English description supplied.