CVE Catalog

CVE-2023-25139

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.42%

72th percentile - higher than 72% of all known CVEs

Summary

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. 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.

Risk Assessment

The buffer overflow can lead to memory corruption, application crashes, or potential arbitrary code execution. The risk affects applications using the vulnerable glibc version and formatting numbers with thousands separators.

Recommendation

Update glibc to a version containing the fix for this bug. Until patched, avoid formatting numbers with thousands separators and padding in vulnerable contexts.

Other vulnerabilities in glibc

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS