CVE-2026-39979: Out-of-bounds read in libjq jv_parse_sized() error formatting
- Vendors
- Red HatJqlang
An out-of-bounds read vulnerability affects the jv_parse_sized() API in libjq, the library underlying the jq command-line JSON processor. Although the API accepts a buffer with an explicit length, an error-handling path passes the input buffer to jv_string_fmt() using the %s format specifier. This causes error construction to read until a NUL terminator rather than respecting the supplied buffer length. Malformed JSON in a non-NUL-terminated buffer can therefore trigger reads beyond the buffer boundary, potentially disclosing adjacent memory or terminating the process. The vulnerability affects implementations preceding the upstream fixing commit.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can expose memory beyond the supplied JSON buffer through constructed error messages or crash the consuming process, causing denial of service. The outcome depends on adjacent memory contents, memory accessibility, and how the application handles or exposes parsing errors. The established impacts concern confidentiality and availability; arbitrary code execution and integrity compromise are not established.
Mitigation
If you can’t patch tonight, do this now.
As a caller-side defensive measure pending patching, copy input into an allocation with room for an additional byte and append a NUL terminator immediately after the counted input before calling jv_parse_sized(). Continue passing the actual input length. Restrict untrusted input from reaching affected consumers where feasible. Suppressing externally visible parser errors may reduce information disclosure but does not prevent the out-of-bounds read or process termination. No vendor-endorsed temporary workaround is identified.
Remediation
Patch, then assume compromise.
Apply upstream commit 2f09060afab23fe9390cce7cb860b10416e1bf5f or install a vendor package containing the fix. For Alpine Linux, update jq and related packages to 1.8.2-r0 or later. Fixed packages for the specified RHEL 8.8 support streams include jq 1.6-6.el8_8.4; for the specified RHEL 8.4 support streams, jq 1.5-12.el8_4.5. For other distributions, install the applicable vendor security update. Update affected container images and rebuild dependent images using patched components.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-39979 exploited in the wild?
- As of Nov 26, 2026, Mallory has no reports of CVE-2026-39979 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-39979?
- Yes. As of Nov 26, 2026, Mallory has reports of a public exploit for CVE-2026-39979.
- Is there a patch for CVE-2026-39979?
- Apply upstream commit 2f09060afab23fe9390cce7cb860b10416e1bf5f or install a vendor package containing the fix. For Alpine Linux, update jq and related packages to 1.8.2-r0 or later.
- What products are affected by CVE-2026-39979?
- Jqlang Jq, Red Hat Ai Inference Server, Red Hat Ansible Automation Platform, Red Hat Ceph Storage, Red Hat Codeready Linux Builder Eus, and 9 more.
- How severe is CVE-2026-39979?
- CVE-2026-39979 has a CVSS v4 score of 6.9 (Medium) and an EPSS score of 0.58% (42nd percentile) as of Nov 26, 2026.
Recent activity
72 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.