CVE & CISA-KEV Catalog

CVE-2026-39956

MEDIUM
6.1
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
jqDebian
Fixed in:1.6-2.1+deb11u2CVE-2026-39956
Fixed in:1.6-2.1+deb12u2CVE-2026-39956
Fixed in:1.7.1-6+deb13u2CVE-2026-39956
Fixed in:1.8.1-5CVE-2026-39956
jqRocky
Fixed in:main@srcRHSA-2026:8579
Fixed in:main@aarch64RHSA-2026:8579
Fixed in:main@x86_64RHSA-2026:8579
jqRed Hat / RHEL
Fixed in:main@x86_64RHSA-2026:8579
Fixed in:main@srcRHSA-2026:8579
Fixed in:main@aarch64RHSA-2026:8579
jqUbuntu
Fixed in:1.3-1.1ubuntu1.1+esm4USN-8202-1
Fixed in:1.5+dfsg-1ubuntu0.1+esm4USN-8202-1
Fixed in:1.5+dfsg-2ubuntu0.1~esm2USN-8202-1
Fixed in:1.6-1ubuntu0.20.04.1+esm2USN-8202-1
Fixed in:1.6-2.1ubuntu3.2USN-8202-1
Fixed in:1.7.1-3ubuntu0.24.04.2USN-8202-1
Fixed in:1.8.1-3ubuntu1.1USN-8202-1
libjq-devUbuntu
Fixed in:1.5+dfsg-2ubuntu0.1~esm2USN-8202-1
Fixed in:1.6-1ubuntu0.20.04.1+esm2USN-8202-1
Fixed in:1.6-2.1ubuntu3.2USN-8202-1
Fixed in:1.7.1-3ubuntu0.24.04.2USN-8202-1
Fixed in:1.8.1-3ubuntu1.1USN-8202-1
libjq1Ubuntu
Fixed in:1.5+dfsg-2ubuntu0.1~esm2USN-8202-1
Fixed in:1.6-1ubuntu0.20.04.1+esm2USN-8202-1
Fixed in:1.6-2.1ubuntu3.2USN-8202-1
Fixed in:1.7.1-3ubuntu0.24.04.2USN-8202-1
Fixed in:1.8.1-3ubuntu1.1USN-8202-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

Exploit Intelligence

0.17%probability of exploitation in 30 days
7thpercentile

Low risk: more likely to be exploited than 7% of all known CVEs.

References

Exploit1

Related Vulnerabilities

Other CWE-125 (Out-of-bounds Read) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2014-0160High7.5100%KEVFix
CVE-2025-5777High7.5100%KEV + RansomFix
CVE-2021-4034High7.895%KEVFix
CVE-2023-21769High7.592%-Fix
CVE-2023-49285High8.689%-Fix
CVE-2020-8794Critical9.889%-Fix
Embed a live status badge for CVE-2026-39956
CVE-2026-39956 severity badge

Markdown

[![CVE-2026-39956](https://tridentstack.com/cve/badge/CVE-2026-39956.svg)](https://tridentstack.com/cve/CVE-2026-39956)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-39956"><img src="https://tridentstack.com/cve/badge/CVE-2026-39956.svg" alt="CVE-2026-39956"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-04-21.