CVE-2026-33947

Name
CVE-2026-33947
Description
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
security-advisories@github.com https://github.com/jqlang/jq/commit/fb59f1491058d58bdc3e8dd28f1773d1ac690a1f
security-advisories@github.com https://github.com/jqlang/jq/security/advisories/GHSA-xwrw-4f8h-rjvg
af854a3a-2127-422b-91ae-364da2661108 http://www.openwall.com/lists/oss-security/2026/04/16/1

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:* jq >= None <= 1.8.1

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
jq edge-main 1.8.1-r0 Patrycja Rosa <alpine@ptrcnull.me> possibly vulnerable
jq edge-main 1.8.0-r0 Patrycja Rosa <alpine@ptrcnull.me> possibly vulnerable
jq edge-main 1.7.1-r0 Patrycja Rosa <alpine@ptrcnull.me> possibly vulnerable
jq edge-main 1.6_rc1-r0 None possibly vulnerable
jq 3.23-main 1.8.1-r0 Patrycja Rosa <alpine@ptrcnull.me> possibly vulnerable
jq 3.22-main 1.8.1-r0 Patrycja Rosa <alpine@ptrcnull.me> possibly vulnerable
jq 3.22-main 1.8.0-r0 Patrycja Rosa <alpine@ptrcnull.me> possibly vulnerable
jq 3.22-main 1.7.1-r0 None possibly vulnerable
jq 3.22-main 1.6_rc1-r0 None possibly vulnerable
jq 3.21-main 1.7.1-r0 Patrycja Rosa <alpine@ptrcnull.me> possibly vulnerable
jq 3.21-main 1.6_rc1-r0 None possibly vulnerable
jq 3.20-main 1.7.1-r0 Patrycja Rosa <alpine@ptrcnull.me> possibly vulnerable
jq 3.20-main 1.6_rc1-r0 None possibly vulnerable
jq 3.19-main 1.7.1-r0 Patrycja Rosa <alpine@ptrcnull.me> possibly vulnerable
jq 3.19-main 1.6_rc1-r0 None possibly vulnerable