CVE-2026-32316 Details
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.
An integer overflow vulnerability has been identified in jq, a command-line JSON processor, in all versions through 1.8.1. The issue arises in the functions jvp_string_append() and jvp_string_copy_replace_bad, where concatenating strings that exceed a combined length of 2^31 bytes leads to a 32-bit unsigned integer overflow. This overflow causes a significant underallocation of a heap buffer, which is then exploited by subsequent memory copy operations that write the full string data into the undersized buffer, creating a heap buffer overflow. This vulnerability, classified as CWE-190 (Integer Overflow) and leading to CWE-122 (Heap-based Buffer Overflow), can be exploited by crafting jq queries that produce extremely large strings, potentially allowing for process crashes or further exploitation through heap corruption.
Users can update to jq version 1.8.1 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jqlang/jq/commit/e47e56d226519635768e6aab2f38f0ab037c09e5 | [email protected] | Patch |
| https://github.com/jqlang/jq/security/advisories/GHSA-q3h9-m34w-h76f | [email protected] | ExploitPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jqlang jq | <= 1.8.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 22, 2026 | Initial Analysis | [email protected] |
| Apr 13, 2026 | New CVE Received | [email protected] |