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 products
gnu: glibc
References7
- sourceware.org/bugzilla/show_bug.cgi?id=30068 ExploitIssue TrackingThird Party Advisory
- sourceware.org/bugzilla/show_bug.cgi?id=30068 ExploitIssue TrackingThird Party Advisory
- www.openwall.com/lists/oss-security/2023/02/10/1
- security.netapp.com/advisory/ntap-20230302-0010/
- www.openwall.com/lists/oss-security/2023/02/10/1
- security.netapp.com/advisory/ntap-20230302-0010/
- cert-portal.siemens.com/productcert/html/ssa-398330.html
Metrics
- CVSS 3.1
-
9.8
CRITICAL
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 1% percentile: 74 · as of 6 November 2026
- CWE
- CWE-787
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.