CVE-2026-39979

Medium

Description

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductJq
PublishedApr 13, 2026
First seenApr 13, 2026

How to fix

Affected products

ProductAffected versionsFixed in
jqlang jqv < 1.8.21.8.2
redhat ai_inference_server3.2.0 ≤ v < 3.2.2, 3.3.0 ≤ v < 3.3.53.2.2, 3.3.5
redhat ansible_automation_platform2.0—
redhat ceph_storage4.0—
redhat codeready_linux_builder8.0, 9.0, 10.0—
redhat codeready_linux_builder_eus9.4, 9.6, 10.0—
redhat hardened_imagesNo range specified—
redhat openshift_ai3.4 ≤ v < 3.4.33.4.3
redhat openshift_container_platform4.12 ≤ v < 4.12.92, 4.13 ≤ v < 4.13.68, 4.14 ≤ v < 4.14.68, 4.15 ≤ v < 4.15.65, 4.16 ≤ v < 4.16.64, 4.17 ≤ v < 4.17.55, 4.18 ≤ v < 4.18.44, 4.19 ≤ v < 4.19.334.12.92, 4.13.68, 4.14.68, 4.15.65, 4.16.64, 4.17.55, 4.18.44, 4.19.33
redhat enterprise_linux8.0, 9.0, 10.0—
redhat enterprise_linux_aus8.4, 8.6—
redhat enterprise_linux_eus8.4, 9.4, 9.6, 10.0—
redhat enterprise_linux_tus8.6, 8.8—
redhat enterprise_linux_update_services_for_sap_solutions8.6, 8.8, 9.0, 9.2—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.