CVE-2026-32316
Detail
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.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
CVSS 2.0 Severity and Vector Strings:
Base
Score:
NVD assessment
not yet provided.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
Weakness Enumeration
| CWE-ID |
CWE Name |
Source |
|
CWE-122
|
Heap-based Buffer Overflow |
GitHub, Inc.
|
|
CWE-190
|
Integer Overflow or Wraparound |
GitHub, Inc.
|
Change History
4 change records found show changes
CVE Modified by CISA-ADP
6/17/2026 6:35:33 AM
| Action |
Type |
Old Value |
New Value |
| Added |
SSVC |
{"timestamp":"2026-04-13T18:56:45.829031Z","id":"CVE-2026-32316","options":[{"exploitation":"poc"},{"automatable":"yes"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}
|
CVE Modified by GitHub, Inc.
6/17/2026 6:35:33 AM
| Action |
Type |
Old Value |
New Value |
| Added |
Affected |
[{"vendor":"jqlang","product":"jq","versions":[{"version":"< e47e56d226519635768e6aab2f38f0ab037c09e5","status":"affected"}]}]
|
Initial Analysis by NIST
4/22/2026 12:29:09 PM
| Action |
Type |
Old Value |
New Value |
| Added |
CVSS V3.1 |
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
|
| Added |
CPE Configuration |
OR
*cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:* versions up to (including) 1.8.1
|
| Added |
Reference Type |
GitHub, Inc.: https://github.com/jqlang/jq/commit/e47e56d226519635768e6aab2f38f0ab037c09e5 Types: Patch
|
| Added |
Reference Type |
GitHub, Inc.: https://github.com/jqlang/jq/security/advisories/GHSA-q3h9-m34w-h76f Types: Exploit, Patch, Vendor Advisory
|
New CVE Received from GitHub, Inc.
4/13/2026 2:16:29 PM
| Action |
Type |
Old Value |
New Value |
| Added |
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.
|
| Added |
CVSS V3.1 |
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
|
| Added |
CWE |
CWE-122
|
| Added |
CWE |
CWE-190
|
| Added |
Reference |
https://github.com/jqlang/jq/commit/e47e56d226519635768e6aab2f38f0ab037c09e5
|
| Added |
Reference |
https://github.com/jqlang/jq/security/advisories/GHSA-q3h9-m34w-h76f
|
Quick Info
CVE Dictionary Entry: CVE-2026-32316 NVD
Published Date: 04/13/2026 NVD
Last Modified: 06/17/2026
Source: GitHub, Inc.
|