CVE-2026-39979: jq: Out-of-Bounds Read in jv_parse_sized() Error Formatting for Non-NUL-Terminated Counted Buffers
CVE-2026-39979 affects 37 listed versions of Red Hat OpenShift in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Red Hat OpenShift
37 of 250 listed versions are affected. Fixed in 4.17.55, 4.16.64, 4.15.65, 4.14.68, 4.13.68, 4.12.92. The newest release, 5.0.1, is not affected.
4.17.54 4.17.53 4.17.52 4.17.51 4.17.50 4.17.49 4.17.48 4.17.47 4.17.46 4.16.63 4.16.62 4.16.61 4.15.64 4.15.62 4.15.61 4.15.60 4.15.59 4.15.58 4.15.57 4.15.56 4.14.66 4.14.65 4.14.63 4.14.62 4.13.67 4.13.66 4.13.65 4.13.64 4.13.63 4.13.62 4.13.61 4.13.60 4.13.59 4.12.91 4.12.90 4.12.89 4.12.88
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L (NVD)
Published by GitHub on 13 April 2026. Last changed 26 October 2026.
Sources
Check one version you run: look CVE-2026-39979 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.