Vulnerability · Published Feb 3, 2023 · Assigned by mitre

CVE-2023-25139

Critical 9.8

In plain English

A critical-severity out-of-bounds write in the mpfr4 package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.5%top 25.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

sprintf in the GNU C Library (glibc) 2.37 has a buffer overflow (out-of-bounds write) in some situations with a correct buffer size. This is unrelated to CWE-676. It may write beyond the bounds of the destination buffer when attempting to write a padded, thousands-separated string representation of a number, if the buffer is allocated the exact size required to represent that number as a string. For example, 1,234,567 (with padding to 13) overflows by two bytes.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20mpfr44.2.1-r0ALPINE-CVE-2023-25139
Alpine:v3.21mpfr44.2.1-r0ALPINE-CVE-2023-25139
Alpine:v3.22mpfr44.2.1-r0ALPINE-CVE-2023-25139
Alpine:v3.23mpfr44.2.1-r0ALPINE-CVE-2023-25139
Alpine:v3.24mpfr44.2.1-r0ALPINE-CVE-2023-25139

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References