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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j Exploit, Mitigation, Vendor Advisory
- https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j Exploit, Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 5.4 · jqlangNVD modified 2026-10-26 18:10
Affected (CPE criteria) 1
cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*
References 2
- https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j Exploit, Mitigation, Vendor Advisory
- https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j Exploit, Mitigation, Vendor Advisory