Skip to content

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. This is unrelated to CWE-676. It may write beyond the bounds of the...

CriticalCVSS 9.8 EPSS 1.5%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
Debian

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.

Upgrade path

10 packages: 9 fixed.

PackageAffectedFixed inStatus
alpine/mpfr4(Alpine v3.19) < 4.2.1-r0 4.2.1-r0 Fixed
alpine/mpfr4(Alpine v3.20) < 4.2.1-r0 4.2.1-r0 Fixed
alpine/mpfr4(Alpine v3.21) < 4.2.1-r0 4.2.1-r0 Fixed
alpine/mpfr4(Alpine v3.22) < 4.2.1-r0 4.2.1-r0 Fixed
alpine/mpfr4(Alpine v3.23) < 4.2.1-r0 4.2.1-r0 Fixed
alpine/mpfr4(Alpine v3.24) < 4.2.1-r0 4.2.1-r0 Fixed
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
GNU glibc = 2.37 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
alpine/mpfr4(Alpine:v3.19) < 4.2.1-r0 4.2.1-r0
alpine/mpfr4(Alpine:v3.20) < 4.2.1-r0 4.2.1-r0
alpine/mpfr4(Alpine:v3.21) < 4.2.1-r0 4.2.1-r0
alpine/mpfr4(Alpine:v3.22) < 4.2.1-r0 4.2.1-r0
alpine/mpfr4(Alpine:v3.23) < 4.2.1-r0 4.2.1-r0
alpine/mpfr4(Alpine:v3.24) < 4.2.1-r0 4.2.1-r0
GNU glibc = 2.37 No fix listed

References