Skip to main content

jq EUVDEUVD-2026-39500

| CVE-2026-49839 HIGH
Out-of-bounds Write (CWE-787)
N/A vendor:alpine
7.1
CVSS 3.1 · Vendor: vendor:alpine
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious JSON payload
  2. Delivery
    Deliver to jq-processing pipeline
  3. Exploit
    Trigger out-of-bounds write in parser
  4. Execution
    Corrupt memory / crash process
  5. Impact
    Disrupt integrity and availability

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires that the victim invoke jq (the CLI or library) on attacker-controlled JSON input; the CVSS UI:R confirms a user or automation action is needed to feed the malicious data to jq, and AV:L confirms the input must reach a local jq process rather than being triggered over the network directly. Limiting factors: there is no privilege requirement (PR:N), but the attacker cannot trigger the bug unless their data is passed to jq, so deployments that only process trusted, self-generated JSON are not realistically exposed; impact is integrity and availability (memory corruption/crash), not data theft. Practical risk concentrates in pipelines, scripts, and services that pipe externally-sourced JSON through an unpatched jq.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H, base 7.1) describes a locally-triggered, low-complexity flaw needing no privileges but requiring user interaction, yielding high integrity and availability impact with no confidentiality loss - consistent with memory corruption (crash or possible data tampering) rather than disclosure. The 'local' designation means the malicious input must reach a jq invocation on the host, but in automation pipelines that boundary is thin because remote data is routinely fed to a local jq process. There is no KEV listing and no POC noted, so this is not confirmed active exploitation; EPSS was not supplied, so exploitation probability cannot be quantified. Net assessment: a credible memory-corruption bug in a near-ubiquitous tooling component that warrants prompt patching, but absent any public exploit it is routine-priority rather than an emergency.

Exploit ScenarioDerived

An attacker crafts a malicious JSON document and gets it delivered to a system where jq will process it - for example, a webhook payload or API response consumed by a CI script that runs jq on it. When jq parses the crafted input it performs an out-of-bounds write, crashing the process or corrupting memory and potentially disrupting the automation. No public exploit code has been identified at time of analysis, so the scenario remains theoretical pending a POC.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jun 25, 2026

Out-of-bounds write in the jq command-line JSON processor (CWE-787) lets a crafted JSON input corrupt memory when parsed, threatening the integrity and availability of the processing host. Tracked upstream as GHSA-cfh2-vwfq-qfmm and packaged by Alpine Linux, the flaw requires a victim to run jq against attacker-controlled data (local vector, user interaction required). No public exploit identified at time of analysis, and it is not listed in CISA KEV; no EPSS score was provided.

Earlier versions of this analysis (2)
v2 Jun 25, 2026 - 18:28 cvss changed CVSS 7.1

Out-of-bounds write in the jq command-line JSON processor (fixed in Alpine package 1.8.2-r0) allows an attacker to corrupt memory when a victim processes a maliciously crafted JSON document, potentially leading to integrity compromise or a crash. The flaw requires the user to run jq against attacker-controlled input, so exploitation hinges on user interaction rather than network reachability, with no public exploit identified at time of analysis. It is tracked upstream in jq advisory GHSA-cfh2-vwfq-qfmm and carries a CVSS 7.1 (high) rating.

v1 Jun 22, 2026 - 17:01

CVE-2026-49839 identifies a vulnerability in jq, the widely-used command-line JSON processor, as packaged by Alpine Linux. The fix was shipped in Alpine Linux package version 1.8.2-r0. Critically, the underlying nature of the vulnerability - whether it involves memory corruption, input parsing, code execution, or another class of issue - is not disclosed in any available intelligence source. No CVSS score, CWE classification, EPSS probability, KEV status, or POC data was provided, making authoritative risk characterization impossible at this time.

RemediationAI

Upgrade the Alpine jq package to the fixed build 1.8.2-r0 or later (for example, apk update && apk add --upgrade jq), and on non-Alpine systems track the corresponding upstream jq release referenced in GHSA-cfh2-vwfq-qfmm (https://github.com/jqlang/jq/security/advisories/GHSA-cfh2-vwfq-qfmm). Patch status: Vendor-released patch: 1.8.2-r0 (Alpine). Until patched, avoid running jq over untrusted or attacker-influenced JSON; where pipelines must process external JSON, validate or size-limit the input before parsing and run jq under reduced privileges or inside a sandboxed/containerized context so a crash or corruption cannot escalate - the trade-off is added pipeline latency and complexity. These compensating controls reduce exposure but do not remove the underlying bug, so upgrading remains the priority.

Affected VersionsENISA

jq < 1.8.2

Affected Packages

euvd jq fix: 1.8.2

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 lightweight, dependency-free command-line tool and C library for slicing, filtering, and transforming structured JSON. The CWE-787 (Out-of-bounds Write) classification, combined with the 'Buffer Overflow' and 'Memory Corruption' tags, indicates that malformed or maliciously structured JSON drives jq's native C parsing/serialization to write past the bounds of an allocated buffer. Because jq is heavily embedded in shell scripts, CI/CD pipelines, container entrypoints, and automation that pipes untrusted JSON (API responses, webhook payloads) through it, the real attack surface is anywhere jq consumes data not fully controlled by the operator.

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 (vendor:alpine) PRIMARY 7.1 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
vuln.today AI 7.1 HIGH

Malicious input must reach a local jq run (AV:L, UI:R) with no privileges (PR:N); memory corruption gives I:H/A:H and no disclosure (C:N).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vendor:alpine).

CVSS VectorVendor: vendor:alpine

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

Lifecycle Timeline

4
Patch available
Jun 25, 2026 - 19:17 EUVD
Analysis Updated
Jun 25, 2026 - 18:28 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 25, 2026 - 18:28 vuln.today
v2 - CVSS changed
CVSS changed
Jun 25, 2026 - 18:22 NVD
7.1 (HIGH)

DescriptionCVE.org

Alpine Linux: jq fixed in 1.8.2-r0

Executive ViewAI

Why It Matters

jq, a JSON command-line processor commonly deployed in DevOps and data processing pipelines, contains a memory corruption flaw (CVE-2026-49839) that could cause service failures or data corruption when processing untrusted JSON inputs. Organizations relying on jq for automation, data transformation, or API processing face availability and integrity risks, particularly in CI/CD pipelines and batch processing workflows. The vulnerability requires processing attacker-supplied JSON but lacks current patch coverage, making immediate mitigating controls critical.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict jq to processing only JSON from trusted, controlled sources; implement pre-processing validation and schema enforcement before jq execution; deploy jq within containerized or sandboxed environments to limit blast radius; disable jq services not actively required; monitor GHSA-cfh2-vwfq-qfmm for vendor patch availability.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
High
jq is a near-ubiquitous JSON tool across Linux distros, CI/CD, and automation
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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

CVE-2026-41257 MEDIUM
6.4 May 11

Integer overflow in jq's bytecode VM data stack allocation tracking allows local attackers to corrupt heap memory and ac

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