CVE-2023-25139
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.42%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 1.42% probability · 71th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-787
- Affected
- gnu/glibc
- Source
- cve@mitre.org
References
- http://www.openwall.com/lists/oss-security/2023/02/10/1
- https://security.netapp.com/advisory/ntap-20230302-0010/
- https://sourceware.org/bugzilla/show_bug.cgi?id=30068Exploit, Issue Tracking, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2023/02/10/1
- https://security.netapp.com/advisory/ntap-20230302-0010/
- https://sourceware.org/bugzilla/show_bug.cgi?id=30068Exploit, Issue Tracking, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.