cve.bz

CVE-2026-39979 Out-of-bounds Read

6.9 mediumExploit referenceEPSS 0.6%Fix available

Medium (6.9). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
jq is a command-line JSON processor. In commits before 2f09060afab23fe9390cce7cb860b10416e1bf5f, the jv_parse_sized() API in libjq accepts a counted buffer with an explicit length parameter, but its error-handling path formats the input buffer using %s in jv_string_fmt(), which reads until a NUL terminator is found rather than respecting the caller-supplied length. This means that when malformed JSON is passed in a non-NUL-terminated buffer, the error construction logic performs an out-of-bounds read past the end of the buffer. The vulnerability is reachable by any libjq consumer calling jv_parse_sized() with untrusted input, and depending on memory layout, can result in memory disclosure or process termination. The issue has been patched in commit 2f09060afab23fe9390cce7cb860b10416e1bf5f.

Severity

CVSS 4.0

6.9 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
EPSS
0.6% (unchanged from 0.6% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 48th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-04-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-39979 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-39979?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-39979?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-39979 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-39979

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-39979](https://cve.bz/cve/badge/CVE-2026-39979.svg)](https://cve.bz/cve/CVE-2026-39979)

HTML:

<a href="https://cve.bz/cve/CVE-2026-39979"><img src="https://cve.bz/cve/badge/CVE-2026-39979.svg" alt="CVE-2026-39979"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
jqlang:jqbefore 1.8.2
redhat:ai_inference_serverfrom 3.2.0 before 3.2.2
redhat:ai_inference_serverfrom 3.3.0 before 3.3.5
redhat:ansible_automation_platform2.0
redhat:ceph_storage4.0
redhat:codeready_linux_builder8.0
redhat:codeready_linux_builder9.0
redhat:codeready_linux_builder10.0
redhat:codeready_linux_builder_eus9.4
redhat:codeready_linux_builder_eus9.6
redhat:codeready_linux_builder_eus10.0
redhat:openshift_aifrom 3.4 before 3.4.3
redhat:openshift_container_platformfrom 4.12 before 4.12.92
redhat:openshift_container_platformfrom 4.13 before 4.13.68
redhat:openshift_container_platformfrom 4.14 before 4.14.68
redhat:openshift_container_platformfrom 4.15 before 4.15.65
redhat:openshift_container_platformfrom 4.16 before 4.16.64
redhat:openshift_container_platformfrom 4.17 before 4.17.55
redhat:openshift_container_platformfrom 4.18 before 4.18.44
redhat:openshift_container_platformfrom 4.19 before 4.19.33
redhat:enterprise_linux8.0
redhat:enterprise_linux9.0
redhat:enterprise_linux10.0
redhat:enterprise_linux_aus8.4
redhat:enterprise_linux_aus8.6
redhat:enterprise_linux_eus8.4
redhat:enterprise_linux_eus9.4
redhat:enterprise_linux_eus9.6
redhat:enterprise_linux_eus10.0
redhat:enterprise_linux_tus8.6
redhat:enterprise_linux_tus8.8
redhat:enterprise_linux_update_services_for_sap_solutions8.6
redhat:enterprise_linux_update_services_for_sap_solutions8.8
redhat:enterprise_linux_update_services_for_sap_solutions9.0
redhat:enterprise_linux_update_services_for_sap_solutions9.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12jq1.6-2.1+deb12u2DEBIAN-CVE-2026-39979
Debian13jq1.7.1-6+deb13u2DEBIAN-CVE-2026-39979
Debian14jq1.8.1-5DEBIAN-CVE-2026-39979
Ubuntu22.04:LTSjq1.6-2.1ubuntu3.2UBUNTU-CVE-2026-39979 USN-8202-1
Ubuntu24.04:LTSjq1.7.1-3ubuntu0.24.04.2UBUNTU-CVE-2026-39979 USN-8202-1
Ubuntu25.10jq1.8.1-3ubuntu1.1UBUNTU-CVE-2026-39979 USN-8202-1
Ubuntu26.04:LTSjq1.8.1-4ubuntu2UBUNTU-CVE-2026-39979
UbuntuPro:14.04:LTSjq1.3-1.1ubuntu1.1+esm4UBUNTU-CVE-2026-39979 USN-8202-1
UbuntuPro:16.04:LTSjq1.5+dfsg-1ubuntu0.1+esm4UBUNTU-CVE-2026-39979 USN-8202-1
UbuntuPro:18.04:LTSjq1.5+dfsg-2ubuntu0.1~esm2UBUNTU-CVE-2026-39979 USN-8202-1
UbuntuPro:20.04:LTSjq1.6-1ubuntu0.20.04.1+esm2UBUNTU-CVE-2026-39979 USN-8202-1
Red Hatenterprise_linux:8::appstreamjq, jq-debuginfo, jq-debugsource0:1.6-12.el8_10RHSA-2026:16252
Red Hatenterprise_linux:8::crbjq-devel, jq-debuginfo, jq-debugsource0:1.6-12.el8_10RHSA-2026:16252
Red Hatenterprise_linux:9::baseosjq, jq-debuginfo, jq-debugsource0:1.6-19.el9_7.0.2RHSA-2026:16693
Red Hatenterprise_linux:9::baseosjq, jq-debuginfo, jq-debugsource0:1.6-19.el9_8.2RHSA-2026:19365
Red Hatenterprise_linux:9::baseosjq, jq-debuginfo, jq-debugsource0:1.6-21.el9_9RHSA-2026:98496
Red Hatenterprise_linux:9::crbjq-devel, jq-debuginfo, jq-debugsource0:1.6-19.el9_7.0.2RHSA-2026:16693
Red Hatenterprise_linux:9::crbjq-devel, jq-debuginfo, jq-debugsource0:1.6-19.el9_8.2RHSA-2026:19365
Red Hatenterprise_linux:9::crbjq-devel, jq-debuginfo, jq-debugsource0:1.6-21.el9_9RHSA-2026:98496
Red Hatenterprise_linux:10.1jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Red Hatenterprise_linux:10.2jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-11.el10_2.2RHSA-2026:19151
Red Hatenterprise_linux:10.3jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-13.el10_3RHSA-2026:98603
Red Hatenterprise_linux_eus:10.0jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-8.el10_0.3RHSA-2026:18040
10 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 and 1 morejq1.6-150000.3.20.1SUSE-SU-2026:2983-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0jq1.7.1-160000.3.1SUSE-SU-2026:22566-1
SUSELinux Micro 6.0jq1.6-6.1SUSE-SU-2026:22705-1
SUSELinux Micro 6.1jq1.7.1-slfo.1.1_3.1SUSE-SU-2026:22664-1
SUSELinux Micro 6.2jq1.7.1-160000.3.1SUSE-SU-2026:22545-1
openSUSELeap 16.0jq1.7.1-160000.3.1openSUSE-SU-2026:21248-1
openSUSETumbleweedjq1.8.1-3.1openSUSE-SU-2026:10850-1
AlmaLinux8jq, jq-devel1.6-12.el8_10ALSA-2026:16252
AlmaLinux9jq, jq-devel1.6-19.el9_7.0.2ALSA-2026:16693
AlmaLinux9jq, jq-devel1.6-19.el9_8.2ALSA-2026:19365
AlmaLinux10jq, jq-devel1.7.1-11.el10_1.0.2ALSA-2026:16692
AlmaLinux10jq, jq-devel1.7.1-11.el10_2.2ALSA-2026:19151
Rocky Linux8jq0:1.6-12.el8_10RLSA-2026:16252
Rocky Linux9jq0:1.6-19.el9_7.0.2RLSA-2026:16693
Rocky Linux9jq0:1.6-19.el9_8.2RLSA-2026:19365
Rocky Linux9jq, jq-devel, jq-debuginfo and 1 more0:1.6-21.el9_9RLSA-2026:98496
Rocky Linux10jq0:1.7.1-11.el10_1.0.2RLSA-2026:16692
Rocky Linux10jq0:1.7.1-11.el10_2.2RLSA-2026:19151
Rocky Linux10jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-13.el10_3RLSA-2026:98603
Alpinev3.21, v3.22, v3.23 and 1 morejq1.8.2-r0ALPINE-CVE-2026-39979
Azure Linux3jq1.7.1-5AZL-82931
Alpaquita23, streamjq1.8.1-r1BELL-CVE-2026-39979
Alpaquita25jq1.8.1-r2BELL-CVE-2026-39979

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

To exploit this flaw, an attacker needs to supply malformed JSON from a non-NUL-terminated buffer to an application using the `jv_parse_sized` function. This allows the attacker to trigger the out-of-bounds read, causing an application crash and potentially disclosing memory with no other security impact. As this issue affects the libjq library, it is more likely to be exposed to untrusted input. Due to these reasons, this vulnerability has been rated with an important severity.

Red Hat's mitigation

To mitigate this issue, manually ensure that every buffer is NUL-terminated before passing it to the 'jv_parse_sized' function.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10jq-0:1.7.1-11.el10_1.0.2Fixed 2026-05-13RHSA-2026:16692
Red Hat Enterprise Linux 10jq-0:1.7.1-11.el10_2.2Fixed 2026-05-19RHSA-2026:19151
Red Hat Enterprise Linux 10.0 Extended Update Supportjq-0:1.7.1-8.el10_0.3Fixed 2026-05-18RHSA-2026:18040
Red Hat Enterprise Linux 8jq-0:1.6-12.el8_10Fixed 2026-05-12RHSA-2026:16252
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportjq-0:1.5-12.el8_4.5Fixed 2026-05-18RHSA-2026:18048
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onjq-0:1.5-12.el8_4.5Fixed 2026-05-18RHSA-2026:18048
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportjq-0:1.6-3.el8_6.2Fixed 2026-05-18RHSA-2026:18047
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicejq-0:1.6-3.el8_6.2Fixed 2026-05-18RHSA-2026:18047
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsjq-0:1.6-3.el8_6.2Fixed 2026-05-18RHSA-2026:18047
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicejq-0:1.6-6.el8_8.4Fixed 2026-05-18RHSA-2026:18046
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsjq-0:1.6-6.el8_8.4Fixed 2026-05-18RHSA-2026:18046
Red Hat Enterprise Linux 9jq-0:1.6-19.el9_7.0.2Fixed 2026-05-13RHSA-2026:16693
Red Hat Enterprise Linux 9jq-0:1.6-19.el9_8.2Fixed 2026-05-19RHSA-2026:19365
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsjq-0:1.6-12.el9_0.3Fixed 2026-05-18RHSA-2026:18045
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsjq-0:1.6-15.el9_2.3Fixed 2026-05-18RHSA-2026:18044
Red Hat Enterprise Linux 9.4 Extended Update Supportjq-0:1.6-16.el9_4.2Fixed 2026-05-18RHSA-2026:18043
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/controller-rhel9Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/hub-rhel9Not affected
Red Hat Ansible Automation Platform 2automation-controllerNot affected
Red Hat Ceph Storage 4jqFix deferred
16 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-39979.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON