Out-of-bounds Write Affecting glibc package, versions <2.37-r1


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.21% (59th 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-WOLFILATEST-GLIBC-5847078
  • published21 Aug 2023
  • 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 Wolfi glibc to version 2.37-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream glibc package and not the glibc package as distributed by Wolfi. See How to fix? for Wolfi 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 Scores

version 3.1