CVE-2023-25139
Published: September 19, 2023Last modified: October 1, 2025
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.
Severity score breakdown
| Parameter | Value |
|---|---|
| Base score | 9.8 |
| Attack Vector | NETWORK |
| Attack complexity | LOW |
| Privileges required | NONE |
| User interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality | HIGH |
| Integrity impact | HIGH |
| Availability impact | HIGH |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Status
| Product | Release | Package | Status |
|---|---|---|---|
| Alpaquita Linux | 23 LTS | glibc | Not affected (2.37.0-r0) |
| Stream | glibc | Not affected (2.37.0-r0) | |
| mpfr4 | Fixed (4.2.1-r0) | ||
| Hardened Containers | 23 LTS | glibc | Not affected (2.37.0-r0) |
| Stream | glibc | Not affected (2.37.0-r0) | |
| mpfr4 | Fixed (4.2.1-r0) |