CVE-2026-32316
Fixed in a distro release EPSS <1%CVSS 8.2
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.
Products: jqlang jq
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.22 | jq | 1.8.2-r0 |
| Alpine 3.23 | jq | 1.8.2-r0 |
| Alpine 3.24 | jq | 1.8.2-r0 |
| Amazon Linux 2 | jq | 1.6-17.amzn2.0.1 |
| Amazon Linux 2 | jq-devel | 1.6-17.amzn2.0.1 |
| Amazon Linux 2023 | jq | 1.8.1-59.amzn2023 |
| Amazon Linux 2023 | jq-devel | 1.8.1-59.amzn2023 |
| Chainguard | jq | 1.8.1-r5 |
| Debian 12 | jq | 1.6-2.1+deb12u3 |
| Debian 13 | jq | 1.7.1-6+deb13u3 |
| Debian 14 | jq | 1.8.1-5 |
| Red Hat hummingbird 1 | jq | 0:1.8.1-3.hum1 |
| Red Hat hummingbird 1 | jq-devel | 0:1.8.1-3.hum1 |
| SUSE Linux Enterprise Micro 5.3 | jq | 1.6-150000.3.20.1 |
| SUSE Linux Enterprise Micro 5.4 | jq | 1.6-150000.3.20.1 |
| SUSE Linux Enterprise Micro 5.5 | jq | 1.6-150000.3.20.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | jq | 1.6-150000.3.20.1 |
| SUSE Linux Enterprise Server 16.0 | jq | 1.7.1-160000.3.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | jq | 1.7.1-160000.3.1 |
| SUSE Linux Micro 6.0 | jq | 1.6-6.1 |
| SUSE Linux Micro 6.0 | jq | 1.7.1-1.1 |
| SUSE Linux Micro 6.1 | jq | 1.7.1-slfo.1.1_3.1 |
| SUSE Linux Micro 6.2 | jq | 1.7.1-160000.3.1 |
| Ubuntu 22.04 LTS | jq | 1.6-2.1ubuntu3.2 |
| Ubuntu 24.04 LTS | jq | 1.7.1-3ubuntu0.24.04.2 |
| Ubuntu 25.10 | jq | 1.8.1-3ubuntu1.1 |
| Ubuntu 26.04 LTS | jq | 1.8.1-4ubuntu2 |
| Ubuntu Pro 14.04 LTS | jq | no fix |
| Ubuntu Pro 14.04 LTS | jq | 1.3-1.1ubuntu1.1+esm4 |
| Ubuntu Pro 16.04 LTS | jq | 1.5+dfsg-1ubuntu0.1+esm4 |
| Ubuntu Pro 18.04 LTS | jq | 1.5+dfsg-2ubuntu0.1~esm2 |
| Ubuntu Pro 20.04 LTS | jq | 1.6-1ubuntu0.20.04.1+esm2 |
| Wolfi | jq | 1.8.1-r5 |
| openSUSE Leap 16.0 | jq | 1.7.1-160000.3.1 |
| openSUSE Tumbleweed | jq | 1.8.1-3.1 |