Skip to main content

jq EUVDEUVD-2026-22126

| CVE-2026-39956 MEDIUM
Out-of-bounds Read (CWE-125)
2026-04-13 GitHub_M
6.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Attacker injects malicious filter string
  2. Delivery
    jq release build evaluates _strindices(numeric_value)
  3. Exploit
    assert() guards absent due to -DNDEBUG compilation
  4. Execution
    jv_string_indexes() operates on unvalidated non-string argument
  5. Persist
    Controlled pointer dereference triggers out-of-bounds read
  6. Impact
    Process crash (DoS) or limited memory probe achieved

Vulnerability Assessment

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

1 technique across 1 tactic: Collection

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 an attacker control the jq filter expression being evaluated - not merely the JSON data fed to it - and that jq be a release build compiled with -DNDEBUG (standard for virtually all packaged distributions). The CVSS UI:R reflects that a human or automated process must invoke jq with the attacker-influenced filter; no authentication to jq itself is required (PR:N), but the attacker needs a channel to inject filter content (e.g., a web API that accepts filter strings, a misconfigured CI job, or a script that interpolates user input into a filter). The memory-read primitive requires the attacker to know or brute-force a viable IEEE-754 double value mapping to a useful target pointer, significantly raising complexity beyond the trivial crash case. Debug builds are not vulnerable because assert() guards remain active. Deployments where users control only JSON input data but not the filter string are not exploitable.

Impact

The CVSS 6.1 (Medium) score with AV:L reflects that exploitation requires the attacker to control the jq filter expression evaluated - not just the JSON input data - and that a process must invoke jq. However, many real deployments pipe untrusted filter strings into jq (web APIs, CI pipelines, log processors), effectively elevating the practical attack surface beyond what AV:L implies. EPSS at 0.01% (2nd percentile) indicates extremely low current exploitation probability, and SSVC confirms the attack is not automatable and has only partial technical impact. The primary real-world risk is denial-of-service: crashing a jq-dependent pipeline is trivial with _strindices(0). The memory-read path requires significant attacker control over the double value's bit pattern to target a meaningful address, adding meaningful attack complexity not fully captured by the AC:L CVSS metric. SSVC-confirmed POC existence means the crash primitive is reproducible; the memory exfiltration path is plausible but not confirmed as weaponized. No conflict between signals is present, though the AV:L designation understates risk in filter-injection-as-a-service scenarios.

Exploit ScenarioDerived

An attacker who can inject a jq filter expression into a CI pipeline, log-processing service, or API that invokes jq internally submits a filter containing _strindices(0), immediately crashing the jq process and any dependent automation without authentication. With greater control over the numeric argument, the attacker crafts a double-precision value whose IEEE-754 bit representation corresponds to a target memory address, triggering a controlled pointer dereference that leaks a limited window of process memory - potentially exposing heap pointers, stack values, or in-memory secrets. A POC demonstrating at minimum the crash primitive is confirmed by SSVC data.

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

Out-of-bounds read in jq release builds allows an attacker who controls filter input to crash the processor or probe process memory by passing a non-string argument to the _strindices builtin. Release builds compiled with -DNDEBUG strip the assert() type guards in jv_string_indexes(), enabling a type confusion that escalates from trivial denial-of-service to a controlled pointer dereference and limited memory read primitive via IEEE-754 bit-pattern manipulation. Publicly available exploit code exists per SSVC; EPSS remains at 0.01% (2nd percentile), indicating no widespread exploitation, and the attack is not in CISA KEV.

RemediationAI

The upstream fix is available in commit fdf8ef0f0810e3d365cdd5160de43db46f57ed03 at https://github.com/jqlang/jq/commit/fdf8ef0f0810e3d365cdd5160de43db46f57ed03; a formally tagged release version is not independently confirmed from the available data, so organizations should build from the patched commit or await a distribution-packaged update. Ubuntu users should apply the fix via USN-8202-1 (https://ubuntu.com/security/notices/USN-8202-1). As a compensating control where patching is not immediately possible, deployments that evaluate untrusted jq filter expressions should validate or sanitize filter input to reject or escape calls to _strindices with non-string arguments before passing them to jq - this is effective but adds filter-parsing logic that itself must be maintained. The most impactful mitigation with no functional trade-off for data-processing pipelines is to restrict which inputs can supply filter expressions versus JSON data, ensuring users control only input data and not the filter string itself; this eliminates the exploitation surface entirely.

Affected VersionsENISA

jq 69785bf77f86e2ea1b4a20ca86775916889e91c9, < fdf8ef0f0810e3d365cdd5160de43db46f57ed03

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 widely-used command-line JSON processor. The vulnerability resides in src/builtin.c, where the _strindices builtin forwards both of its arguments to jv_string_indexes() in src/jv.c without first validating that each is of JV_KIND_STRING type. In debug builds, assert() statements catch this mismatch at runtime, but standard release builds compiled with -DNDEBUG disable those assertions entirely, leaving the function operating on unvalidated type data. The root cause is CWE-125 (Out-of-Bounds Read): by supplying a double-precision floating-point value whose IEEE-754 bit pattern coincidentally maps to an arbitrary pointer value, an attacker can cause jq to dereference that pointer and read memory outside the intended buffer. The commit diff confirms the fix is a simple JV_KIND_STRING guard (jv_get_kind checks) that returns a proper type_error rather than proceeding with unsafe pointer arithmetic. The absence of this guard exclusively in release builds is what makes this a silent regression rather than an obvious crash in testing.

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.1 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
vuln.today AI 6.1 MEDIUM

Attacker must control filter execution context (AV:L, UI:R); no prior privileges on jq required (PR:N); impact is limited memory read (C:L) and reliable crash (A:H) with no write path (I:N).

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch released
Apr 19, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 13, 2026 - 22:10 nvd
MEDIUM 6.1

DescriptionCVE.org

jq is a command-line JSON processor. In commits after 69785bf77f86e2ea1b4a20ca86775916889e91c9, the _strindices builtin in jq's src/builtin.c passes its arguments directly to jv_string_indexes() without verifying they are strings, and jv_string_indexes() in src/jv.c relies solely on assert() checks that are stripped in release builds compiled with -DNDEBUG. This allows an attacker to crash jq trivially with input like _strindices(0), and by crafting a numeric value whose IEEE-754 bit pattern maps to a chosen pointer, achieve a controlled pointer dereference and limited memory read/probe primitive. Any deployment that evaluates untrusted jq filters against a release build is vulnerable. This issue has been patched in commit fdf8ef0f0810e3d365cdd5160de43db46f57ed03.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
High
standard DevOps and scripting tool, ubiquitous in CI and cloud pipelines
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL 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

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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