CVE-2026-32316 json
jq: Integer overflow in jvp_string_append() allows Heap-based Buffer Overflow
published 2026-04-13 6 mo ago modified 2026-10-26 13 d ago also EUVD-2026-22039
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
jq is a command-line JSON processor. An integer overflow vulnerability exists through version 1.8.1 within the jvp_string_append() and jvp_string_copy_replace_bad functions, where concatenating strings with a combined length exceeding 2^31 bytes causes a 32-bit unsigned integer overflow in the buffer allocation size calculation, resulting in a drastically undersized heap buffer. Subsequent memory copy operations then write the full string data into this undersized buffer, causing a heap buffer overflow classified as CWE-190 (Integer Overflow) leading to CWE-122 (Heap-based Buffer Overflow). Any system evaluating untrusted jq queries is affected, as an attacker can crash the process or potentially achieve further exploitation through heap corruption by crafting queries that produce extremely large strings. The root cause is the absence of string size bounds checking, unlike arrays and objects which already have size limits. The issue has been addressed in commit e47e56d226519635768e6aab2f38f0ab037c09e5.
Patch / fix
- jq Debian 12 1.6-2.1+deb12u3
- jq Debian 13 1.7.1-6+deb13u3
- jq Debian 14 1.8.1-5
debian advisories DEBIAN-CVE-2026-32316
- jq Ubuntu 22.04 LTS 1.6-2.1ubuntu3.2
- jq Ubuntu 24.04 LTS 1.7.1-3ubuntu0.24.04.2
- jq Ubuntu 25.10 1.8.1-3ubuntu1.1
- jq Ubuntu 26.04 LTS 1.8.1-4ubuntu2
- jq Ubuntu Pro 16.04 LTS 1.5+dfsg-1ubuntu0.1+esm4
- jq Ubuntu Pro 18.04 LTS 1.5+dfsg-2ubuntu0.1~esm2
- jq Ubuntu Pro 20.04 LTS 1.6-1ubuntu0.20.04.1+esm2
ubuntu advisories UBUNTU-CVE-2026-32316
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- jq hummingbird 1 1.8.1-3.hum1
red hat advisories RHSA-2026:8579
- jq Linux Micro 6.0 1.7.1-1.1
- jq SLE Module for Basesystem 15 SP7, SLE Micro 5.5, SLE Micro 5.4 +1 more 1.6-150000.3.20.1
- jq Linux Micro 6.0 1.6-6.1
- jq SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 1.7.1-160000.3.1
- jq Linux Micro 6.1 1.7.1-slfo.1.1_3.1
suse advisories SUSE-SU-2026:23873-1SUSE-SU-2026:2983-1SUSE-SU-2026:22705-1SUSE-SU-2026:22545-1SUSE-SU-2026:22566-1SUSE-SU-2026:22664-1
- jq openSUSE Leap 16.0 1.7.1-160000.3.1
- jq openSUSE Tumbleweed 1.8.1-3.1
opensuse advisories openSUSE-SU-2026:21248-1openSUSE-SU-2026:10850-1
- jq Alpine 3.24, Alpine 3.23, Alpine 3.22 1.8.2-r0
alpine advisories ALPINE-CVE-2026-32316
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-32316 updated cvss 6.8
jq: jq: Denial of Service or potential arbitrary code execution due to integer overflow and heap-based buffer overflow
-
Red Hat Ansible Automation Platform 2 automation-controller, redhat-user-workloads/ansible-tenant/ansible-automation-platform-26/hub-rhel9, redhat-user-workloads/ansible-tenant/ansible-automation-platform-26/controller-rhel9 Red Hat Ceph Storage 4 jq Red Hat Enterprise Linux 8 jq Red Hat Enterprise Linux 9 jq Red Hat Enterprise Linux 10 jq Red Hat OpenShift Container Platform 4 rhcosaffected: workaround, no fix available “Fix deferred”
-
Red Hat Hardened Images jq 1.8.1-3.hum1fixed: vendor fix RHSA-2026:8579
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.79% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/jqlang/jq/security/advisories/GHSA-q3h9-m34w-h76f referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected products
- jqlang jq
Classification
References
Sources
- CVE List CVE-2026-32316
- NVD CVE-2026-32316
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.