CVE-2026-39979: fallo de gravedad media en jqlang jq
jq: Out-of-Bounds Read in jv_parse_sized() Error Formatting for Non-NUL-Terminated Counted Buffers
Publicada el · Actualizada el
Aviso por correo cuando entre en el KEV, tenga PoC pública o suba de nota.
13Vexday Risk Score
Sin señal de explotación. Ningún artefacto público de explotación conocido hasta ahora.
ssvc Trackcvss 6.9epss 0.6%
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:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
Productos afectados
jqlang · jqCVEs relacionadas — jqlang jq
En el mismo producto, de las más peligrosas a las menos.
CVE-2026-32316HIGHjq: Integer overflow in jvp_string_append() allows Heap-based Buffer OverflowEPSS 0.8%CVE-2025-48060HIGHAddressSanitizer: stack-buffer-overflow in jq_fuzz_execute (jv_string_vfmt)EPSS 0.6%CVE-2023-50246MEDIUMjq has heap-buffer-overflow vulnerability in the function decToString in decNumber.cEPSS 0.5%CVE-2024-23337MEDIUMjq has signed integer overflow in jv.c:jvp_array_writeEPSS 0.5%CVE-2023-50268MEDIUMjq has stack-based buffer overflow in decNaNsEPSS 0.4%CVE-2025-49014MEDIUMjq heap use after free vulnerability in f_strflocaltimeEPSS 0.4%
Referencias
https://access.redhat.com/errata/RHSA-2026:16252https://access.redhat.com/errata/RHSA-2026:16692https://access.redhat.com/errata/RHSA-2026:16693https://access.redhat.com/errata/RHSA-2026:18040https://access.redhat.com/errata/RHSA-2026:18042https://access.redhat.com/errata/RHSA-2026:18043https://access.redhat.com/errata/RHSA-2026:18044https://access.redhat.com/errata/RHSA-2026:18045https://access.redhat.com/errata/RHSA-2026:18046https://access.redhat.com/errata/RHSA-2026:18047https://access.redhat.com/errata/RHSA-2026:18048https://access.redhat.com/errata/RHSA-2026:19151