CVE-2026-33947: jq: Unbounded Recursion in jv_setpath(), jv_getpath() and delpaths_sorted()

Published Apr 13, 2026
·
Updated

jq is a command-line JSON processor. In versions 1.8.1 and below, functions jv_setpath(), jv_getpath(), and delpaths_sorted() in jq's src/jv_aux.c use unbounded recursion whose depth is controlled by the length of a caller-supplied path array, with no depth limit enforced. An attacker can supply a JSON document containing a flat array of ~65,000 integers (~200 KB) that, when used as a path argument by a trusted jq filter, exhausts the C call stack and crashes the process with a segmentation fault (SIGSEGV). This bypass works because the existing MAX_PARSING_DEPTH (10,000) limit only protects the JSON parser, not runtime path operations where arrays can be programmatically constructed to arbitrary lengths. The impact is denial of service (unrecoverable crash) affecting any application or service that processes untrusted JSON input through jq's setpath, getpath, or delpaths builtins. This issue has been addressed in commit fb59f1491058d58bdc3e8dd28f1773d1ac690a1f.

Affected Software

4 affected componentsFixes available
JQ jq<=1.8.1
Microsoft azl3 jq 1.7.1-4
jqlang jq<=1.8.1
Microsoft cbl2 jq 1.6-5

Event History

Apr 13, 2026
CVE Published
via MITRE·09:50 PM
Data Sourced
via MITRE·09:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 17, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:01 AM
DescriptionSeverity
Updated
via Microsoft·08:01 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-33947?

CVE-2026-33947 is classified as a high severity vulnerability due to the potential for unbounded recursion leading to application crashes.

2

How do I fix CVE-2026-33947?

To mitigate CVE-2026-33947, upgrade jq to version 1.8.2 or later, which addresses the unbounded recursion issue.

3

Which versions of jq are affected by CVE-2026-33947?

CVE-2026-33947 affects jq versions up to and including 1.8.1.

4

What functions are involved in CVE-2026-33947?

The vulnerability in CVE-2026-33947 arises from functions jv_setpath(), jv_getpath(), and delpaths_sorted() in jq.

5

What are the potential consequences of CVE-2026-33947?

The main consequence of CVE-2026-33947 is the risk of application crashes due to excessive recursion, leading to denial of service.

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