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

EcosystemPackageFixed inAdvisory
Alpine:v3.22jq1.7.1-r0ALPINE-CVE-2023-50246
Alpine:v3.23jq1.7.1-r0ALPINE-CVE-2023-50246
Alpine:v3.24jq1.7.1-r0ALPINE-CVE-2023-50246
Debian:13jq1.7.1-1DEBIAN-CVE-2023-50246
Debian:14jq1.7.1-1DEBIAN-CVE-2023-50246
Ubuntu:24.04:LTSjq1.7.1-2UBUNTU-CVE-2023-50246

Affected products (as reported)

VendorProductVersions
jqlang jq = 1.7

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