CVE-2026-32316 jq: Integer overflow in jvp_string_append() allows Heap-based Buffer Overflow
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
22 packages: 14 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/automation-controller(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/jq(Red Hat ceph_storage 4) | All versions | No fix listed | No fix yet |
| redhat/jq(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/jq(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/jq(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/redhat-user-workloads/controller-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/redhat-user-workloads/hub-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/rhcos(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| alpine/jq(Alpine v3.21) | < 1.8.2-r0 | 1.8.2-r0 | Fixed |
| alpine/jq(Alpine v3.22) | < 1.8.2-r0 | 1.8.2-r0 | Fixed |
| alpine/jq(Alpine v3.23) | < 1.8.2-r0 | 1.8.2-r0 | Fixed |
| alpine/jq(Alpine v3.24) | < 1.8.2-r0 | 1.8.2-r0 | Fixed |
| azure linux jq(Azure Linux 3.0) | < 1.7.1-5 | 1.7.1-5 | Fixed |
| cbl-mariner jq(CBL-Mariner 2.0) | < 1.6-6 | 1.6-6 | Fixed |
| debian/jq(Debian 12) | < 1.6-2.1+deb12u3; = 1.6-2.1; = 1.6-2.1+deb12u1; = 1.6-2.1+deb12u2 | 1.6-2.1+deb12u3 | Fixed |
| debian/jq(Debian 13) | < 1.7.1-6+deb13u3; = 1.7.1-6+deb13u1; = 1.7.1-6+deb13u2 | 1.7.1-6+deb13u3 | Fixed |
| debian/jq(Debian 14) | < 1.8.1-5; = 1.8.0-1; = 1.8.1-1; = 1.8.1-2 +2 more | 1.8.1-5 | Fixed |
| jqlang jq | <= 1.8.1; = < e47e56d226519635768e6aab2f38f0ab037c09e5 | after 1.8.1 | Fixed |
| redhat/jq-main(Red Hat hummingbird 1) | < 1.8.1-3.hum1 | 1.8.1-3.hum1 | Fixed |
| ubuntu/jq(Ubuntu 22.04) | < 1.6-2.1ubuntu3.2 | 1.6-2.1ubuntu3.2 | Fixed |
| ubuntu/jq(Ubuntu 24.04) | < 1.7.1-3ubuntu0.24.04.2 | 1.7.1-3ubuntu0.24.04.2 | Fixed |
| ubuntu/jq(Ubuntu 26.04) | < 1.8.1-4ubuntu2 | 1.8.1-4ubuntu2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner jq(CBL-Mariner:2.0) | < 1.6-6 | 1.6-6 |
| azure linux jq(Azure Linux:3.0) | < 1.7.1-5 | 1.7.1-5 |
| jqlang jq | = < e47e56d226519635768e6aab2f38f0ab037c09e5 | No fix listed |
| debian/jq(Debian:12) | < 1.6-2.1+deb12u3 | 1.6-2.1+deb12u3 |
| debian/jq(Debian:12) | = 1.6-2.1 | No fix listed |
| debian/jq(Debian:12) | = 1.6-2.1+deb12u1 | No fix listed |
| debian/jq(Debian:12) | = 1.6-2.1+deb12u2 | No fix listed |
| debian/jq(Debian:13) | < 1.7.1-6+deb13u3 | 1.7.1-6+deb13u3 |
| debian/jq(Debian:13) | = 1.7.1-6+deb13u1 | No fix listed |
| debian/jq(Debian:13) | = 1.7.1-6+deb13u2 | No fix listed |
| debian/jq(Debian:14) | < 1.8.1-5 | 1.8.1-5 |
| debian/jq(Debian:14) | = 1.8.0-1 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-1 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-2 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-3 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-4 | No fix listed |
| redhat/jq-main(Red Hat:hummingbird:1) | < 1.8.1-3.hum1 | 1.8.1-3.hum1 |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/redhat-user-workloads/controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/redhat-user-workloads/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/jq(Red Hat:ceph_storage:4) | All versions | No fix listed |
| redhat/jq(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/jq(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/jq(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/rhcos(Red Hat:openshift:4) | All versions | No fix listed |
Show 8 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/jq(Ubuntu:22.04) | < 1.6-2.1ubuntu3.2 | 1.6-2.1ubuntu3.2 |
| ubuntu/jq(Ubuntu:24.04) | < 1.7.1-3ubuntu0.24.04.2 | 1.7.1-3ubuntu0.24.04.2 |
| ubuntu/jq(Ubuntu:26.04) | < 1.8.1-4ubuntu2 | 1.8.1-4ubuntu2 |
| jqlang jq | <= 1.8.1 | No fix listed |
| alpine/jq(Alpine:v3.21) | < 1.8.2-r0 | 1.8.2-r0 |
| alpine/jq(Alpine:v3.22) | < 1.8.2-r0 | 1.8.2-r0 |
| alpine/jq(Alpine:v3.23) | < 1.8.2-r0 | 1.8.2-r0 |
| alpine/jq(Alpine:v3.24) | < 1.8.2-r0 | 1.8.2-r0 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- https://github.com/jqlang/jq/security/advisories/GHSA-q3h9-m34w-h76f exploit patch vendor-advisory
- https://github.com/jqlang/jq/commit/e47e56d226519635768e6aab2f38f0ab037c09e5 patch
- lists.debian.org
- Debian Security Tracker CVE-2026-32316 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:8579 patch vendor-advisory
- Red Hat Bugzilla 2457929 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- USN-8202-1 vendor-advisory
- USN-8202-2 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-22039 third-party-advisory