Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious JSON payload
-
DeliveryDeliver to jq-processing pipeline
-
ExploitTrigger out-of-bounds write in parser
-
ExecutionCorrupt memory / crash process
-
ImpactDisrupt 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – 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)
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.
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
Affected Packages
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
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
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).
Primary rating from Vendor (vendor:alpine).
CVSS VectorVendor: vendor:alpine
Lifecycle Timeline
4DescriptionCVE.org
Alpine Linux: jq fixed in 1.8.2-r0
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which ha
Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote attackers to cause a denial of service (cras
jq is a command-line JSON processor. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, no auth
The jv_dump_term function in jq 1.5 allows remote attackers to cause a denial of service (stack consumption and applicat
decToString in decNumber/decNumber.c in jq 88f01a7 has a one-byte out-of-bounds write via the " []-1.2e-1111111111" inpu
jq is a command-line JSON processor. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Publ
jq is a command-line JSON processor. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Publ
A heap-based buffer overflow in jqlang/jq through version 1.8.1 allows remote, unauthenticated attackers to crash - and
jq, the command-line JSON processor, was patched in Alpine Linux with package version 1.8.2-r0. The specific vulnerabili
Out-of-bounds read in libjq's jv_parse_sized() API exposes any embedding application to memory disclosure or process ter
jq on Alpine Linux was patched in package version 1.8.2-r0, addressing an unspecified vulnerability. The nature of the f
Integer overflow in jq's bytecode VM data stack allocation tracking allows local attackers to corrupt heap memory and ac
EUVD-2026-39500
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB