# CVE-2026-47770: jq: stack overflow in deep structural equality

- Severity: Medium 6.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-25T17:22:21.531Z
- Modified: 2026-10-25T22:10:00.150Z
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jqlang jq: < 1.8.2; before 1.8.2

## Every score

- GitHub_M: CVSS:4.0 6.8 Medium `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`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/jqlang/jq/security/advisories/GHSA-3pgx-frr7-3jxp> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-47770](https://www.cve.org/CVERecord?id=CVE-2026-47770), CVE Terms of Use, modified 2026-06-26
- NVD: [CVE-2026-47770](https://nvd.nist.gov/vuln/detail/CVE-2026-47770), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-47770 · Whole record: https://cve.day/CVE-2026-47770.json · Rebuilt by cve.day 2026-11-25T22:59:26.394Z
