CVE Explorer
CVE-2026-40612
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"jq","vendor":"jqlang","versions":[{"status":"affected","version":"<= 1.8.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:47e100a15f39b8067af5f5df944c688b1dc6698c685dfe134e8122cdd35741dc · sha256:829fcc57793f9936… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":5.4,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:47e100a15f39b8067af5f5df944c688b1dc6698c685dfe134e8122cdd35741dc · sha256:829fcc57793f9936… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-674","description":"CWE-674: Uncontrolled Recursion","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:47e100a15f39b8067af5f5df944c688b1dc6698c685dfe134e8122cdd35741dc · sha256:829fcc57793f9936… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"tags":["exploit"],"url":"https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:47e100a15f39b8067af5f5df944c688b1dc6698c685dfe134e8122cdd35741dc · sha256:829fcc57793f9936… · /containers/adp/0/references/0
{"name":"https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j","tags":["x_refsource_CONFIRM"],"url":"https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:47e100a15f39b8067af5f5df944c688b1dc6698c685dfe134e8122cdd35741dc · sha256:829fcc57793f9936… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.