Out-of-bounds Write Affecting mpfr4 package, versions <4.2.1-r0


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.5% (74th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE321-MPFR4-8484762
  • published6 Dec 2024
  • disclosed3 Feb 2023

Introduced: 3 Feb 2023

CVE-2023-25139  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Alpine:3.21 mpfr4 to version 4.2.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mpfr4 package and not the mpfr4 package as distributed by Alpine. See How to fix? for Alpine:3.21 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1