CVE-2023-25139

CRITICAL CVSS 3.1: 9.8 EPSS 1.51%
Updated Oct 15, 2026
Gnu
Parameter Value
CVSS 9.8 (CRITICAL)
Type CWE-787 (Out-of-bounds Write)
Vendor Gnu
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Gnu Glibc
cpe:2.3:a:gnu:glibc:2.37:*:*:*:*:*:*:*
— —