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.
References
| Link | Resource |
|---|---|
| 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 |
Configurations
History
13 May 2026, 17:00
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Jqlang jq
Jqlang |
|
| References | () https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j - Exploit, Mitigation, Vendor Advisory | |
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 5.5 |
| CPE | cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:* |
11 May 2026, 19:16
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j - |
11 May 2026, 18:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-05-11 18:16
Updated : 2026-05-13 17:00
NVD link : CVE-2026-40612
Mitre link : CVE-2026-40612
CVE.ORG link : CVE-2026-40612
JSON object : View
Products Affected
jqlang
- jq
CWE
CWE-674
Uncontrolled Recursion
