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

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

Affected products (as reported)

VendorProductVersions
jqlang jq = 1.7

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