A medium-severity libjq uncontrolled-recursion vulnerability may affect Kong API Gateway Enterprise and Kong AI Gateway Enterprise.
Security Advisory: CVE-2026-33947
- 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-33947 | libjq stack overflow through excessively long path arrays | Medium (CVSS 3.1: 6.2) | Yes |
CVE-2026-33947
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 uncontrolled-recursion vulnerability in libjq path-processing functions.
An attacker able to influence a jq expression and its input could supply an extremely long path array to an affected operation. Processing the path may trigger excessive recursion in jv_setpath(), jv_getpath(), delpaths_sorted(), or the delpaths filter.
Successful exploitation may exhaust the NGINX worker’s stack and cause the worker process to terminate with a segmentation fault, potentially resulting in service degradation or a denial-of-service condition.
- Severity: Medium
- CVSS v3.1 score: 6.2
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub, acting as the CNA, assigned a score of 6.2 Medium. NVD separately lists a score of 5.5 Medium. A CVSS v4.0 score has not been published by NVD for this vulnerability.
Am I affected?
You should consider a Kong Gateway deployment affected if all of the following are true:
- A plugin or custom Lua component evaluates jq expressions using Kong’s libjq integration.
- The jq expression invokes
getpath,setpath,delpaths, or another operation that reaches the affected libjq path-processing functions. - An attacker can control or substantially influence the path array supplied to the affected operation.
- The attacker can provide a path array containing enough elements to exhaust the NGINX worker’s stack.
The default Kong configuration does not expose arbitrary jq expressions or libjq path operations directly to remote clients. Deployments that do not evaluate affected path operations using attacker-controlled path arrays are not affected by this issue.
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.