CVE-2026-39979

EUVD-2026-22128
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
6.5 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Base Score
CVSS 3.x
EPSS Score
Percentile: 42%
Affected Products (NVD)
VendorProductVersion
jqlangjq
𝑥
< 2026-04-12
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
jq
bookworm
vulnerable
bookworm (security)
1.6-2.1+deb12u2
fixed
bullseye
vulnerable
bullseye (security)
1.6-2.1+deb11u3
fixed
forky
1.8.2-1
fixed
sid
1.8.2-1
fixed
trixie
1.7.1-6+deb13u2
fixed
Red Hat logo
Red Hat Enterprise Linux Releases
Red Hat Product
Release
jq
RHEL 8
0:1.6-12.el8_10
fixed
RHEL 9
0:1.6-19.el9_8.2
fixed
jq-devel
RHEL 8
0:1.6-12.el8_10
fixed
RHEL 9
0:1.6-19.el9_8.2
fixed
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
jq
Amazon Linux 2
0:1.6-17.amzn2.0.1
fixed
Amazon Linux 2023
0:1.8.1-59.amzn2023
fixed
jq-debuginfo
Amazon Linux 2
0:1.6-17.amzn2.0.1
fixed
Amazon Linux 2023
0:1.8.1-59.amzn2023
fixed
jq-debugsource
Amazon Linux 2023
0:1.8.1-59.amzn2023
fixed
jq-devel
Amazon Linux 2
0:1.6-17.amzn2.0.1
fixed
Amazon Linux 2023
0:1.8.1-59.amzn2023
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
jq
Azure Linux 3.0
0:1.7.1-5.azl3
fixed
References