Skip to main content

jq CVE-2026-43894

| EUVDEUVD-2026-29172 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-05-11 GitHub_M
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Craft JSON with INT_MAX-1 digit numeric literal
  2. Delivery
    Provide input to jq process
  3. Exploit
    Integer overflow in D2U() macro
  4. Install
    Heap-check bypass
  5. C2
    Out-of-bounds stack write
  6. Execute
    Memory corruption
  7. Impact
    Application 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

Exploitation requires: (1) jq version 1.8.1 or earlier installed and accessible; (2) a JSON input containing a numeric literal with INT_MAX-1 (2,147,483,646) or more decimal digits; (3) the attacker's ability to supply or control the JSON input that jq processes-this may be direct command-line invocation or indirect via a service that parses JSON. No special jq configuration, non-default settings, or platform-specific requirements are necessary. The attack is limited to local attackers (AV:L) who can invoke jq or supply input to a process running jq. Remote attackers cannot directly trigger this unless jq is exposed via a network service (e.g., a REST API that processes JSON). Default jq installations are vulnerable if version 1.8.1 or earlier.

Impact

This vulnerability presents a localized but severe denial-of-service risk. The CVSS vector (AV:L/AC:L/PR:N/UI:N) indicates local attack vector with low complexity, no privileges required, and no user interaction needed-meaning any local user can trigger it by invoking jq with a malicious JSON file. The vulnerability results in guaranteed application crash due to massive out-of-bounds memory write, satisfying the Availability impact (A:H) in the CVSS vector. However, the attack vector being local (AV:L) significantly limits exposure scope compared to network-exploitable flaws; this is not a remote code execution and does not threaten systems where jq is not directly accessible to untrusted users. The Confidentiality and Integrity scores are None (C:N/I:N), indicating the attacker cannot read or modify data beyond crashing the process, though the memory corruption could theoretically be leveraged for code execution if the written content is sufficiently controllable (the description states it is 'fully attacker-controlled parsed decimal digits'). The exceptional input requirement (INT_MAX-1 digits, or 2.1+ billion decimal digits in a single JSON number) is a significant practical barrier-such malformed input is unlikely to occur accidentally and requires deliberate crafting. EPSS and KEV data are not provided, so real-world exploitation likelihood cannot be quantified from those sources; however, the local-attack-only requirement and extreme input size suggest this is a low-probability but high-impact flaw if triggered. The lack of POC or KEV confirmation indicates no active widespread exploitation at the time of analysis.

Exploit ScenarioDerived

An attacker crafts a JSON file containing a single numeric literal with 2,147,483,646 or more decimal digits (or close to INT_MAX) and delivers it to a system where jq processes untrusted JSON-for example, a CI/CD pipeline that uses jq to parse webhook payloads, a log processing system, or any service that invokes jq on user-supplied input. When jq attempts to parse this number using decNumberFromString, the integer overflow in D2U() occurs, bypassing the allocation size check. The function then writes 1.4 GiB of the attacker's digits to the stack and beyond, causing a crash or memory corruption that denies 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

Buffer overflow in jq 1.8.1 and earlier allows local attackers to cause denial of service by providing a crafted JSON number literal with INT_MAX-1 (2147483646) digits, triggering integer overflow in the D2U() macro that bypasses heap-allocation checks and writes approximately 1.4 GiB of attacker-controlled data to the stack, corrupting memory far below the stack frame.

RemediationAI

Upgrade jq to version 1.8.2 or later, which patches the integer overflow in the D2U() macro. Users unable to immediately upgrade should restrict the parsing of JSON input from untrusted sources or implement size limits on input files to prevent the delivery of multi-gigabyte number literals. However, this is not a reliable workaround since even partial input validation is difficult without parsing the JSON first. The primary remediation is vendor patch adoption; check GitHub Security Advisory GHSA-5v7p-2r57-2g4g for confirmation of the patched version.

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 parses and manipulates JSON data. The vulnerability exists in the decNumberFromString function, which processes numeric literals from JSON input. The root cause is an integer overflow in the D2U() macro during signed-int arithmetic when computing allocation sizes for the decimal number parser. The macro converts a digit count to a unit count but overflows when given INT_MAX-1 digits, producing a wrapped negative value. This negative value passes the heap-allocation size check (which compares against a positive threshold), allowing the function to incorrectly use a 30-byte stack buffer instead of allocating appropriate heap memory. The subsequent write loop then interprets the wrapped value as a legitimate count and writes approximately 715 million 16-bit units (1.4 GiB) of parsed decimal digits at memory offsets far below the stack frame, causing severe memory corruption. CWE-190 (Integer Overflow or Wraparound) describes the underlying defect.

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

2
CVSS changed
Oct 26, 2026 - 18:23 NVD
6.2 (MEDIUM) 5.5 (MEDIUM)
CVE Published
May 11, 2026 - 17:20 nvd
MEDIUM 6.2

DescriptionNVD

jq is a command-line JSON processor. In 1.8.1 and earlier, when decNumberFromString is given a number literal of INT_MAX-1 (2147483646) digits, the D2U() macro overflows during signed-int arithmetic. The wrapped negative value bypasses the heap-allocation size check, causes the function to use a 30-byte stack buffer, and then writes ≈715 million 16-bit units (≈1.4 GiB) at an offset 1.43 GiB below the stack frame. The written content is fully attacker-controlled (the parsed decimal digits, packed 3-per-unit).

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% 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
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
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

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