CVE-2026-40612 Details
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.
A stack overflow vulnerability has been identified in jq, a command-line JSON processor, in versions through 1.8.1. The issue arises in the jv_contains function, which recursively processes nested arrays and objects without a depth limit. This unbounded recursion can lead to exhaustion of the C stack, causing a denial-of-service condition. The vulnerability can be exploited with a deeply nested input structure, created programmatically using the reduce function, as the JSON parser restricts depth to 10,000 levels.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jqlang jq | <= 1.8.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 13, 2026 | Initial Analysis | [email protected] |
| May 11, 2026 | CVE Modified | CISA-ADP |
| May 11, 2026 | New CVE Received | [email protected] |