{"id":"CVE-2026-40612","aliases":["CVE-2026-40612"],"related":[],"kind":"vulnerability","state":"published","title":"jq: Stack overflow via unbounded recursion in jv_contains","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"jq es un procesador de JSON de línea de comandos. En 1.8.1 y versiones anteriores, jv_contains recurre en arrays/objetos anidados sin límite de profundidad. Con una estructura de entrada suficientemente anidada (construida programáticamente con reduce, ya que el analizador JSON tiene un límite de profundidad de 10000), la pila de C se agota.","source":"nvd"}],"published":"2026-05-11T17:16:25.453Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"version":"<= 1.8.1","status":"affected"}],"vendor":"jqlang","product":"jq","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"1.8.1"}],"vendor":"jqlang","product":"jq","cpe":"cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j","tags":["exploit","mitigation","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-11T18:23:24.815Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40612","url":"https://www.cve.org/CVERecord?id=CVE-2026-40612","licence":"CVE Terms of Use","modified":"2026-05-11T18:23:27.762Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40612","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40612","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:21.223Z","epss":{"score":0.00161,"percentile":0.05503,"date":"2026-12-01T12:00:22.000Z"}}