Vulnerability · Published Dec 13, 2023 · Assigned by GitHub_M
CVE-2023-50268jq has stack-based buffer overflow in decNaNs
Medium 6.2
In plain English
A medium-severity stack buffer overflow in jq from jqlang. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.2Medium
Exploit odds (30 days)0.4%top 61.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
jq is a command-line JSON processor. Version 1.7 is vulnerable to stack-based buffer overflow in builds using decNumber. Version 1.7.1 contains a patch for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.22 | jq | 1.7.1-r0 | ALPINE-CVE-2023-50268 |
| Alpine:v3.23 | jq | 1.7.1-r0 | ALPINE-CVE-2023-50268 |
| Alpine:v3.24 | jq | 1.7.1-r0 | ALPINE-CVE-2023-50268 |
| Debian:13 | jq | 1.7.1-1 | DEBIAN-CVE-2023-50268 |
| Debian:14 | jq | 1.7.1-1 | DEBIAN-CVE-2023-50268 |
| Ubuntu:24.04:LTS | jq | 1.7.1-2 | UBUNTU-CVE-2023-50268 |
Affected products (as reported)
Weakness: CWE-121, CWE-120 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/jqlang/jq/security/advisories/GHSA-7hmr-442f-qc8j x_refsource_CONFIRM
- https://github.com/jqlang/jq/pull/2804 x_refsource_MISC
- https://github.com/jqlang/jq/commit/c9a51565214eece8f1053089739aea73145bfd6b x_refsource_MISC
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64771 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2023/12/15/10