Skip to main content

jq EUVDEUVD-2026-29163

| CVE-2026-41257 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-05-11 GitHub_M
6.4
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Craft jq expression with deep nesting
  2. Delivery
    Provide malicious input/filter to jq process
  3. Exploit
    Trigger stack allocation beyond 1 GiB
  4. Install
    Integer overflow in size tracking
  5. C2
    realloc with corrupted size
  6. Execute
    Heap corruption via memmove
  7. Impact
    Execute arbitrary code or crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must be able to either supply a malicious jq filter expression (--arg, command-line, or script file) or provide malicious JSON input that a pre-existing vulnerable jq filter will process. The vulnerability requires the bytecode VM's data stack to exceed approximately 1 GiB during execution, which demands deeply nested generator constructs in the jq expression and sufficient system memory available to the jq process. If memory limits or recursion depth constraints are enforced at the OS or jq configuration level, exploitation becomes significantly more difficult or impossible. Default jq installations without such constraints are vulnerable when processing attacker-supplied expressions or input.

Impact

The CVSS 6.4 score reflects moderate severity with local attack vector (AV:L), high complexity (AC:H), and user interaction required (UI:P), but critically high confidentiality, integrity, and availability impact (VC:H/VI:H/VA:H). The signed integer overflow is a reliable primitive once triggered - the wrapping arithmetic is deterministic. However, real-world risk is tempered by three factors: (1) attack requires local file system access to provide malicious jq expressions, (2) complexity is high, suggesting reliable exploitation demands specific stack sizes and nested structures, and (3) user interaction is mandatory - the attacker cannot trigger the vulnerability via passive network input alone. The E:P tag indicates proof-of-concept code exists, validating technical exploitability. No KEV or active in-the-wild exploitation is reported at analysis time. This is a genuine privilege escalation or sandbox-escape vector if an unprivileged user can trigger jq processing on attacker-controlled JSON, but not a network-exposed critical flaw in typical deployments. Organizations running jq as part of data processing pipelines handling untrusted input face elevated risk; organizations using jq only on trusted data face reduced risk.

Exploit ScenarioDerived

An attacker crafts a jq filter expression containing deeply nested generator forks (e.g., recursive object or array construction) that forces the bytecode VM's stack to grow beyond 1 GiB. When a local user or service executes jq with this filter against attacker-controlled JSON input (or the filter itself is attacker-controlled), the signed integer overflow wraps the allocation size, triggering heap corruption via realloc and memmove. The corrupted heap state can then be leveraged to achieve arbitrary code execution with the privileges of the jq process, or to crash the process (denial of service).

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 – May 11, 2026

Integer overflow in jq's bytecode VM data stack allocation tracking allows local attackers to corrupt heap memory and achieve arbitrary code execution or denial of service by crafting deeply nested JSON generator expressions that exceed ~1 GiB stack size. Affected versions: jq 1.8.1 and earlier. The vulnerability requires local file access and user interaction to trigger malicious jq expressions, but carries high impact potential due to memory corruption exploitability.

RemediationAI

Upgrade jq to version 1.8.2 or later as soon as it becomes available from the jqlang project (https://github.com/jqlang/jq). Until a patched release is available, restrict execution of jq on untrusted JSON inputs by implementing input validation that rejects excessively nested structures (configure depth limits in jq filters using recursion depth guards or input pre-processing) and running jq in a restricted sandbox environment (e.g., containers with read-only filesystems, reduced memory limits via cgroups to prevent 1 GiB allocations) if processing partially-trusted data is unavoidable. Limit filesystem access to jq processes via SELinux or AppArmor policies. Monitor jq process memory consumption for anomalies. Note that these controls reduce but do not eliminate risk if the attacker controls the jq filter expression itself.

Affected VersionsENISA

jq ≤ 1.8.1

Affected Packages

euvd jq no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

jq is a command-line JSON processor that compiles input expressions to bytecode executed by a virtual machine. The bytecode VM maintains a data stack with allocation size tracked as a signed integer. When processing deeply nested generator forks (recursive JSON structures), the stack allocation grows exponentially via doubling. This doubling arithmetic overflows the signed int when stack size exceeds approximately 1 GiB, causing the wrapped (negative or small positive) value to be passed to the realloc() function. The subsequent memmove() operation then uses attacker-influenced offsets on the incorrectly-sized buffer, enabling heap corruption. The root cause is CWE-190 (Integer Overflow or Wraparound) in the allocation size calculation, compounded by insufficient bounds checking before memory operations.

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

Vendor (GitHub_M) PRIMARY 6.4 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
SUSE 3.1 LOW
AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 11, 2026 - 18:22 NVD
6.4 (MEDIUM)
CVE Published
May 11, 2026 - 17:14 nvd
MEDIUM 6.4

DescriptionCVE.org

jq is a command-line JSON processor. In 1.8.1 and earlier, the jq bytecode VM's data stack tracks its allocation size in a signed int. When the stack grows beyond ≈1 GiB (via deeply nested generator forks), the doubling arithmetic overflows. The wrapped value is passed to realloc and then used for a memmove with attacker-influenced offsets.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC 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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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: Low
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