Kong API Gateway Enterprise and Kong AI Gateway Enterprise include libjq, which may be affected by a heap buffer overflow in large string operations. Kong assesses the practical severity as low.
Security Advisory: CVE-2026-32316
- 3.15.0.3
- 3.14.0.12
- 3.13.0.9
- 3.12.0.10
- 3.10.0.17
- 3.4.3.29
- 3.15.0.0 to 3.15.0.2
- 3.14.0.0 to 3.14.0.11
- 3.13.0.0 to 3.13.0.8
- 3.12.0.0 to 3.12.0.9
- 3.10.0.0 to 3.10.0.16
- 3.4.0.0 to 3.4.3.28
|
CVE |
Description |
Severity |
Affects Kong |
|---|---|---|---|
| CVE-2026-32316 | libjq heap buffer overflow in large string operations | Low | Yes |
CVE-2026-32316
Kong API Gateway Enterprise and Kong AI Gateway Enterprise include libjq, which is exposed to Kong’s Lua runtime and may be affected by an integer-overflow vulnerability in libjq string-handling functions.
An attacker able to influence data processed by an affected Lua jq expression could cause repeated string concatenation or replacement operations to produce a very large string. Under the vulnerable conditions, integer overflow in allocation-size calculations within jvp_string_append() or jvp_string_copy_replace_bad() may result in a heap-based buffer overflow.
Successful exploitation could cause an NGINX worker process to terminate and may potentially result in additional heap-corruption impact, leading to service degradation or a denial-of-service condition.
- Kong severity assessment: Low
- Upstream CVSS v3.1 score: 8.2 / High
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
GitHub, acting as the CNA, assigned a score of 8.2 High. NVD separately lists a score of 7.5 High. A CVSS v4.0 score has not been published by NVD for this vulnerability.
Am I affected?
You should consider a Kong Gateway deployment potentially affected if all of the following are true:
- A plugin or custom Lua component evaluates jq expressions using Kong’s libjq integration.
- Attacker-controlled data is supplied to the affected jq expression.
- The expression performs repeated string concatenation or replacement operations using the affected libjq functions.
- The resulting string can grow sufficiently large to overflow libjq’s internal allocation-size calculations.
Kong evaluated this vulnerability through the Lua-to-libjq execution path used by Kong. During testing, Lua runtime limits terminated processing before a string could grow sufficiently large to trigger the vulnerable libjq allocation condition. Kong was therefore unable to reproduce the heap buffer overflow through the supported execution path and has assessed the practical severity for Kong deployments as Low, despite the upstream High severity rating.
Impacted products
All Kong API Gateway Enterprise versions prior to the patch versions listed in the Patches section.
Patches
The vulnerability is addressed by applying the following patch:
|
Impacted supported versions of Kong API Gateway Enterprise |
Patch |
|---|---|
| 3.15.0.0 - 3.15.0.2 | 3.15.0.3 |
| 3.14.0.0 - 3.14.0.11 | 3.14.0.12 |
| 3.13.0.0 - 3.13.0.8 | 3.13.0.9 |
| 3.12.0.0 - 3.12.0.9 | 3.12.0.10 |
| 3.10.0.0 - 3.10.0.16 | 3.10.0.17 |
| 3.4.0.0 - 3.4.3.28 | 3.4.3.29 |
Contact
If you have questions or need help, open a case with Kong Support or email support@konghq.com.