CVE-2026-33947 Details
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.
A denial-of-service vulnerability has been identified in jq, a command-line JSON processor, affecting versions through 1.8.1. The issue arises in the 'jv_setpath()', 'jv_getpath()', and 'delpaths_sorted()' functions within 'src/jv_aux.c', where unbounded recursion can occur. This recursion depth is determined by the length of a caller-supplied path array, with no limit enforced during runtime path operations. An attacker can exploit this by supplying a JSON document containing a flat array of approximately 65,000 integers, which, when processed by a trusted jq filter, exhausts the C call stack. This flaw causes the process to crash with a segmentation fault, bypassing the existing JSON parsing depth limit of 10,000. The vulnerability affects any application or service that uses jq to process untrusted JSON input through these built-in functions, leading to an unrecoverable crash.
Users can update to jq version 1.8.2 or later, where this vulnerability has been fixed. Instructions for updating can be found in the jq repository on GitHub.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jqlang/jq/security/advisories/GHSA-xwrw-4f8h-rjvg | CISA-ADP | ExploitVendor Advisory |
| http://www.openwall.com/lists/oss-security/2026/04/16/1 | CVE | Mailing List |
| https://github.com/jqlang/jq/commit/fb59f1491058d58bdc3e8dd28f1773d1ac690a1f | [email protected] | Patch |
| https://github.com/jqlang/jq/security/advisories/GHSA-xwrw-4f8h-rjvg | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jqlang jq | <= 1.8.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | Initial Analysis | [email protected] |
| Apr 16, 2026 | CVE Modified | CVE |
| Apr 14, 2026 | CVE Modified | CISA-ADP |
| Apr 13, 2026 | New CVE Received | [email protected] |