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

Published Jun 25, 2026
·
Updated

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 jvparrayequal() and jvequal() in src/jv.c when comparing deeply nested arrays; a nearby sort comparator path through jvcmp() in src/jvaux.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.

Other sources

jq: stack overflow in deep structural equality

Microsoft

Affected Software

4 affected componentsFixes available
jq<1.8.2
jqlang jq<1.8.2
Microsoft azl3 jq 1.7.1-6<1.7.1-7
1.7.1-7
Microsoft azl3 jq 1.7.1-8<1.7.1-8
1.7.1-8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.7.1-7
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.7.1-8
  3. Upgrade

    Upgrade jq to a version that resolves this vulnerability.

    Fixed in 1.8.2

Event History

Jun 25, 2026
CVE Published
via MITRE·05:22 PM
Data Sourced
via MITRE·05:22 PM
DescriptionWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 27, 2026
Data Sourced
via Microsoft·08:08 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:08 AM
DescriptionSeverity
Updated
via Microsoft·08:08 AM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-47770?

CVE-2026-47770 has a medium severity rating of 6.8 on the CVSS scale.

2

How does CVE-2026-47770 affect jq?

CVE-2026-47770 can cause jq to experience a stack overflow when comparing deeply nested arrays, leading to denial of service.

3

What versions of jq are affected by CVE-2026-47770?

CVE-2026-47770 affects jq versions prior to 1.8.2.

4

How can I mitigate the risks associated with CVE-2026-47770?

To mitigate CVE-2026-47770, update jq to version 1.8.2 or later.

5

Is CVE-2026-47770 related to recursion issues in jq?

Yes, CVE-2026-47770 is caused by uncontrolled recursion leading to stack exhaustion during deep structural equality comparisons.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203