Skip to main content

jq CVE-2026-33947

| EUVDEUVD-2026-22124 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-04-13 GitHub_M
5.5
CVSS 3.1 · NVD
Temporal: 6.2
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply ~200 KB JSON with flat 65K-integer array
  2. Delivery
    jq filter invokes setpath/getpath/delpaths with attacker array as path
  3. Exploit
    unbounded recursion in jv_aux.c exhausts C call stack
  4. Execution
    SIGSEGV crash terminates jq process
  5. Impact
    service availability lost

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires that the targeted jq invocation uses at least one of three specific built-ins: setpath, getpath, or delpaths - filters that do not call these functions are not vulnerable. The attacker must be able to supply or influence the JSON data processed by such a filter; in command-line use this means local input control, while in server-side deployments processing remote JSON this condition may be met by any unauthenticated network client. The CVSS PR:N metric confirms no authentication or privilege is required on the part of the attacker. The existing MAX_PARSING_DEPTH (10,000) guard does NOT limit exploitation because it only applies to the JSON parser, not to runtime path construction. Exploitation is limited by the requirement that the attacker-controlled value must be interpreted as a path array argument (not arbitrary JSON body content), meaning only pipelines whose filter logic routes attacker data into a path operation are reachable.

Impact

CVSS 6.2 with AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H accurately reflects the denial-of-service-only impact with no confidentiality or integrity consequence. The AV:L designation represents jq as a local process receiving piped input; however, in server-side deployments processing network-sourced JSON through jq, the effective attack vector from an adversary perspective may be network-reachable, meaning AV:L may understate exposure for pipeline-embedded use cases. EPSS at 0.01% (2nd percentile) signals very low automated exploitation activity to date. SSVC confirms a POC exists (exploitation: poc), the vulnerability is not automatable (consistent with the requirement that the targeted jq filter must invoke the specific path built-ins), and technical impact is rated partial (availability only, no data exfiltration). No CISA KEV listing means active widespread exploitation is not confirmed. The combination of POC existence, trivially constructable payload (~200 KB), and crash severity makes this a meaningful risk for any service processing untrusted JSON through these jq built-ins, despite the low EPSS score.

Exploit ScenarioDerived

An attacker submits a crafted JSON document containing a flat integer array of approximately 65,000 elements (~200 KB) as input to a web service or CI pipeline that invokes jq with a filter using the setpath, getpath, or delpaths built-ins. jq passes the array as a path argument to jv_setpath() or jv_getpath(), which recurses once per array element with no depth check, exhausting the C stack and crashing the jq process with SIGSEGV - taking down any parent application that does not isolate the jq subprocess. The fix's regression tests (visible in the commit diff) confirm that arrays of 10,001 or more elements reliably trigger the error path, and a POC is available per SSVC analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Stack exhaustion denial of service in jq 1.8.1 and below allows an attacker who controls JSON input to a filter using setpath, getpath, or delpaths built-ins to crash the processing application with a SIGSEGV by supplying a flat array of approximately 65,000 integers (~200 KB) as a path argument. The unbounded recursion in jv_setpath(), jv_getpath(), and delpaths_sorted() (src/jv_aux.c) is limited only by the C call stack, not by any runtime depth guard - the existing MAX_PARSING_DEPTH (10,000) guard applies exclusively to the JSON parser and does not protect path operations. Publicly available exploit code exists per SSVC analysis; no active exploitation is confirmed in CISA KEV, and the EPSS score of 0.01% (2nd percentile) suggests limited current adversary interest.

RemediationAI

The upstream fix is available in commit fb59f1491058d58bdc3e8dd28f1773d1ac690a1f (https://github.com/jqlang/jq/commit/fb59f1491058d58bdc3e8dd28f1773d1ac690a1f); a specific patched release version (e.g., 1.8.2) is not independently confirmed from available input data - users should track the jq release page and the GitHub advisory (https://github.com/jqlang/jq/security/advisories/GHSA-xwrw-4f8h-rjvg) for tagged releases incorporating this commit. Ubuntu users should apply the update described in USN-8202-1 (https://ubuntu.com/security/notices/USN-8202-1). As a compensating control where patching is not immediately possible, restrict or audit jq filter definitions used in services processing untrusted input to remove or wrap calls to setpath, getpath, and delpaths; filters that do not invoke these three built-ins are not affected by this vulnerability. Additionally, enforce input size limits upstream (e.g., reject JSON payloads exceeding a defined byte threshold) to reduce the likelihood of a ~200 KB path-array payload reaching jq - note that size limits alone are an imperfect mitigation because a sufficiently compact encoding could still trigger the recursion.

Affected VersionsENISA

jq < fb59f1491058d58bdc3e8dd28f1773d1ac690a1f

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

jq (CPE: cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*) is a C-based command-line JSON processor widely embedded in DevOps pipelines, shell scripts, and server-side applications that parse or transform JSON data. The root cause is CWE-674 (Uncontrolled Recursion): the three path-traversal functions in src/jv_aux.c recurse once per element of the caller-supplied path array, with recursion depth bounded only by the available C stack (typically 1-8 MB). The critical gap is architectural: the existing MAX_PARSING_DEPTH macro (10,000) was defined to protect the JSON parser against deeply nested documents, but was never applied to runtime path operations, where arrays can be constructed programmatically to arbitrary length - bypassing the protection entirely. The fix (commit fb59f1491058d58bdc3e8dd28f1773d1ac690a1f) introduces a separate MAX_PATH_DEPTH (10,000) guard at the entry of all three functions, returning a jv_invalid error rather than recursing.

Know when Jq gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CIRCL (temporal) 6.2 MEDIUM
vuln.today AI 6.2 MEDIUM

Local attack vector reflects jq as a process receiving piped input; no privileges needed, no scope change, and impact is availability-only via unrecoverable crash.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 6.2 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Oct 26, 2026 - 21:23 NVD
6.2 (MEDIUM) 5.5 (MEDIUM)
Patch released
Apr 19, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 13, 2026 - 21:50 nvd
MEDIUM 6.2

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
High
widely used CLI JSON utility in DevOps, CI/CD, and scripting pipelines
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Jq

View all
CVE-2024-53427 HIGH POC
8.1 Feb 26

decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which ha

CVE-2015-8863 CRITICAL
9.8 May 06

Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote attackers to cause a denial of service (cras

CVE-2025-48060 HIGH POC
7.7 May 21

jq is a command-line JSON processor. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, no auth

CVE-2016-4074 HIGH POC
7.5 May 06

The jv_dump_term function in jq 1.5 allows remote attackers to cause a denial of service (stack consumption and applicat

CVE-2023-49355 HIGH POC
7.5 Dec 11

decToString in decNumber/decNumber.c in jq 88f01a7 has a one-byte out-of-bounds write via the " []-1.2e-1111111111" inpu

CVE-2023-50268 MEDIUM POC
5.5 Dec 13

jq is a command-line JSON processor. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Publ

CVE-2023-50246 MEDIUM POC
5.5 Dec 13

jq is a command-line JSON processor. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Publ

CVE-2026-32316 HIGH
7.5 Apr 13

A heap-based buffer overflow in jqlang/jq through version 1.8.1 allows remote, unauthenticated attackers to crash - and

CVE-2026-49839 HIGH
7.1

Out-of-bounds write in the jq command-line JSON processor (CWE-787) lets a crafted JSON input corrupt memory when parsed

CVE-2026-54679 MEDIUM
6.9

jq, the command-line JSON processor, was patched in Alpine Linux with package version 1.8.2-r0. The specific vulnerabili

CVE-2026-39979 MEDIUM
6.9 Apr 13

Out-of-bounds read in libjq's jv_parse_sized() API exposes any embedding application to memory disclosure or process ter

CVE-2026-47770 MEDIUM
6.8

jq on Alpine Linux was patched in package version 1.8.2-r0, addressing an unspecified vulnerability. The nature of the f

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Fixed
SLES15-SP6-CHOST-BYOS Fixed
SLES15-SP6-CHOST-BYOS-Aliyun Fixed
SLES15-SP6-CHOST-BYOS-Azure Fixed
SLES15-SP6-CHOST-BYOS-EC2 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy