What’s Vulnerable › Vulnerabilities
CVE-2026-40612: jq: Stack overflow via unbounded recursion in jv_contains
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-05-11 · updated 2026-10-26
- Weakness: CWE-674
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.
Affected products
- jqlang jq: through 1.8.1
References
- https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j
- https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j
Get alerted when CVE-2026-40612 or the next vulnerability affects your stack