CVE-2026-32316: jq: Integer overflow in jvp_string_append() allows Heap-based Buffer Overflow
Vulnerability summary
CVE-2026-32316 is a high (CVSS 8.2) Heap-based Buffer Overflow vulnerability in jqlang jq. EPSS estimates a 0.79% chance of exploitation in the next 30 days, higher than 56.3% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 11Timeline
- 13-04-2026PublishedVulnerability first disclosed.
- 16-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · WolfiEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- OSV · ChainguardEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.79%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
Increase +0.31 pp
From 0.49% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundJq
Maturity: poc
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowThe product writes past the end of a buffer that was allocated on the heap.
- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- jq< 1.8.2-r0
Chainguard1 product
- jq< 1.8.1-r5
Debian1 product
- jq< 1.6-2.1+deb12u2 | < 1.6-2.1+deb12u3 | < 1.7.1-6+deb13u3 | < 1.8.1-5
Jqlang1 product
- jq< e47e56d226519635768e6aab2f38f0ab037c09e5 | ≤ 1.8.1
Ubuntu1 product
- jqAll versions (No fix recorded) | < 1.5+dfsg-1ubuntu0.1+esm4 | < 1.5+dfsg-2ubuntu0.1~esm2 | < 1.6-1ubuntu0.20.04.1+esm2 | < 1.6-2.1ubuntu3.2 | < 1.7.1-3ubuntu0.24.04.2 | < 1.8.1-3ubuntu1.1 | < 1.8.1-4ubuntu2
Wolfi1 product
- jq< 1.8.1-r5
6 vendors · 6 products
References
11 links- github.com/jqlang/jq/security/advisories/GHSA-q3h9-m34w-h76fX Refsource CONFIRMREPORTAdvisoryExploitPatchVendor Advisory