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/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HGnu Glibc
APPGnu2.37
Related vulnerabilities
Heap buffer overflow w GNU C Library — funkcje scanf z formatem %mc
The deprecated compatibility function clnt_create in the sunrpc module of the GNU C Library (aka glibc) throug...
The deprecated compatibility function svcunix_create in the sunrpc module of the GNU C Library (aka glibc) thr...
The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read arbitrary memory in parse...
The mq_notify function in the GNU C Library (aka glibc) versions 2.32 and 2.33 has a use-after-free. It may us...