Home

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.

PUBLISHED Reserved 2026-04-14 | Published 2026-05-11 | Updated 2026-05-11 | Assigner GitHub_M




MEDIUM: 5.4CVSS: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

Problem types

CWE-674: Uncontrolled Recursion

Product status

<= 1.8.1
affected

References

github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j exploit

github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j

cve.org (CVE-2026-40612)

nvd.nist.gov (CVE-2026-40612)

Download JSON