CVE-2026-47770
Fixed in a distro release EPSS <1%CVSS 6.8
jq is a command-line JSON processor. Prior to 1.8.2, comparing two sufficiently deeply nested arrays with the == operator exhausts the C stack on jq's ordinary command-line surface, resulting in denial of service via stack exhaustion (uncontrolled recursion). The crash occurs in jq's recursive structural comparison code, with the recursion repeating through jvp_array_equal() and jv_equal() in src/jv.c when comparing deeply nested arrays; a nearby sort comparator path through jv_cmp() in src/jv_aux.c overflows the stack at a larger nesting depth from the same missing recursion guard. Anyone running jq comparisons on attacker-controlled deeply nested JSON values, or embedding jq in a context where untrusted data can reach the == comparison path, is affected. This vulnerability is fixed in 1.8.2.
Products: jqlang jq
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.22 | jq | 1.8.2-r0 |
| Alpine 3.23 | jq | 1.8.2-r0 |
| Alpine 3.24 | jq | 1.8.2-r0 |
| Amazon Linux 2 | jq | 1.6-17.amzn2.0.1 |
| Amazon Linux 2 | jq-devel | 1.6-17.amzn2.0.1 |
| Debian 12 | jq | 1.6-2.1+deb12u2 |
| Debian 13 | jq | 1.7.1-6+deb13u3 |
| Debian 14 | jq | 1.8.1-7 |
| Red Hat hummingbird 1 | jq | 0:1.8.2-0.1.hum1 |
| Red Hat hummingbird 1 | jq-devel | 0:1.8.2-0.1.hum1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Micro 5.3 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Micro 5.4 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Micro 5.5 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server 15 SP6-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server 16.0 | jq | 1.7.1-160000.5.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | jq | 1.7.1-160000.5.1 |
| SUSE Linux Micro 6.0 | jq | 1.7.1-1.1 |
| SUSE Linux Micro 6.1 | jq | 1.7.1-slfo.1.1_5.1 |
| SUSE Linux Micro 6.2 | jq | 1.7.1-160000.5.1 |
| Ubuntu 22.04 LTS | jq | no fix |
| Ubuntu 24.04 LTS | jq | no fix |
| Ubuntu 25.10 | jq | no fix |
| Ubuntu 26.04 LTS | jq | no fix |
| Ubuntu 26.10 | jq | no fix |
| Ubuntu Pro 14.04 LTS | jq | no fix |
| Ubuntu Pro 16.04 LTS | jq | no fix |
| Ubuntu Pro 18.04 LTS | jq | no fix |
| Ubuntu Pro 20.04 LTS | jq | no fix |
| openSUSE Leap 16.0 | jq | 1.7.1-160000.5.1 |
| openSUSE Tumbleweed | jq | 1.8.2-1.1 |