NVD - CVE-2026-32316 (original) (raw)
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:
NIST: NVD
N/A
NVD assessment not yet provided.
CVSS 3.x Severity and Vector Strings:
NIST: NVD
Base Score: 7.5 HIGH
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CNA: GitHub, Inc.
Base Score: 8.2 HIGH
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:
NIST: NVD
Base Score: N/A
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].
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jqlang/jq/commit/e47e56d226519635768e6aab2f38f0ab037c09e5 | GitHub, Inc. | Patch |
| https://github.com/jqlang/jq/security/advisories/GHSA-q3h9-m34w-h76f | GitHub, Inc. | Exploit Patch Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | GitHub, Inc. |
| CWE-190 | Integer Overflow or Wraparound | GitHub, Inc. |
Known Affected Software Configurations Switch to CPE 2.2
CPEs loading, please wait.
Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.
Change History
2 change records found show changes
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:
04/22/2026
Source:
GitHub, Inc.