CVE-2026-47770 jq: stack overflow in deep structural equality
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebianRed Hat
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| jqlang jq | = < 1.8.2 | No fix listed |
| debian/jq(Debian:12) | < 1.6-2.1+deb12u2 | 1.6-2.1+deb12u2 |
| debian/jq(Debian:14) | < 1.8.1-7 | 1.8.1-7 |
| debian/jq(Debian:13) | < 1.7.1-6+deb13u3 | 1.7.1-6+deb13u3 |
| redhat/jq-main(Red Hat:hummingbird:1) | < 1.8.2-0.1.hum1 | 1.8.2-0.1.hum1 |
| redhat/ansible-automation-platform-26/controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/jq(Red Hat:ceph_storage:4) | All versions | No fix listed |
| redhat/jq(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/jq(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/jq(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:5) | All versions | No fix listed |
| debian/jq(Debian:12) | = 1.6-2.1 | No fix listed |
| debian/jq(Debian:12) | = 1.6-2.1+deb12u1 | No fix listed |
| debian/jq(Debian:13) | = 1.7.1-6+deb13u1 | No fix listed |
| debian/jq(Debian:13) | = 1.7.1-6+deb13u2 | No fix listed |
| debian/jq(Debian:14) | = 1.8.0-1 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-1 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-2 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-3 | No fix listed |
Show 13 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/jq(Debian:14) | = 1.8.1-4 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-5 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-6 | No fix listed |
| ubuntu/jq(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/jq(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/jq(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/jq(Ubuntu:26.10) | All versions | No fix listed |
| jqlang jq | < 1.8.2 | 1.8.2 |
| alpine/jq(Alpine:v3.21) | < 1.8.2-r0 | 1.8.2-r0 |
| alpine/jq(Alpine:v3.22) | < 1.8.2-r0 | 1.8.2-r0 |
| alpine/jq(Alpine:v3.23) | < 1.8.2-r0 | 1.8.2-r0 |
| alpine/jq(Alpine:v3.24) | < 1.8.2-r0 | 1.8.2-r0 |
| azure linux jq(Azure Linux:3.0) | < 1.7.1-7 | 1.7.1-7 |
References
- https://github.com/jqlang/jq/security/advisories/GHSA-3pgx-frr7-3jxp exploit mitigation vendor-advisory
- Debian Security Tracker CVE-2026-47770 vendor-advisory
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:29986 patch vendor-advisory
- Red Hat Bugzilla 2493034 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- security.alpinelinux.org vendor-advisory