Vulnerability · Published Dec 13, 2023 · Assigned by GitHub_M
CVE-2023-50246jq has heap-buffer-overflow vulnerability in the function decToString in decNumber.c
Medium 6.2
In plain English
A medium-severity heap 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.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.2Medium
Exploit odds (30 days)0.5%top 56.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
jq is a command-line JSON processor. Version 1.7 is vulnerable to heap-based buffer overflow. 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-50246 |
| Alpine:v3.23 | jq | 1.7.1-r0 | ALPINE-CVE-2023-50246 |
| Alpine:v3.24 | jq | 1.7.1-r0 | ALPINE-CVE-2023-50246 |
| Debian:13 | jq | 1.7.1-1 | DEBIAN-CVE-2023-50246 |
| Debian:14 | jq | 1.7.1-1 | DEBIAN-CVE-2023-50246 |
| Ubuntu:24.04:LTS | jq | 1.7.1-2 | UBUNTU-CVE-2023-50246 |
Affected products (as reported)
Weakness: CWE-122, 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-686w-5m7m-54vc x_refsource_CONFIRM
- https://github.com/jqlang/jq/commit/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297 x_refsource_MISC
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64574 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2023/12/15/10