{"id":"CVE-2023-25139","aliases":["ALPINE-CVE-2023-25139","BELL-CVE-2023-25139","EUVD-2023-29118","GHSA-2g67-jw5m-244m","openSUSE-SU-2024:13123-1"],"status":"published","title":"sprintf in the GNU C Library (glibc) 2.37 has a buffer overflow (out-of-bounds write) in some...","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":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01496,"percentile":0.74568,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2023-02-03T00:00:00Z","modified":"2026-10-28T02:30:41Z","fixes":[{"ecosystem":"Alpine:v3.19","package":"mpfr4","fixed_in":["4.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"mpfr4","fixed_in":["4.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"mpfr4","fixed_in":["4.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"mpfr4","fixed_in":["4.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"mpfr4","fixed_in":["4.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"mpfr4","fixed_in":["4.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpaquita:stream","package":"mpfr4","fixed_in":["4.2.1-r0"],"sources":["osv"]},{"ecosystem":"BellSoft Hardened Containers:stream","package":"mpfr4","fixed_in":["4.2.1-r0"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"glibc","fixed_in":["2.38-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.19","package":"mpfr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"mpfr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"mpfr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"mpfr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"mpfr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"mpfr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpaquita:stream","package":"mpfr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0-r0"},{"fixed":"4.2.1-r0"}]}]},{"source":"osv","ecosystem":"BellSoft Hardened Containers:stream","package":"mpfr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0-r0"},{"fixed":"4.2.1-r0"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"glibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.38-1.1"}]}]}],"products":[{"vendor":"gnu","product":"glibc"},{"vendor":"siemens","product":"simatic s7-1500 cpu 1518-4 pn/dp mfp"},{"vendor":"siemens","product":"simatic s7-1500 cpu 1518f-4 pn/dp mfp"},{"vendor":"siemens","product":"siplus s7-1500 cpu 1518-4 pn/dp mfp"}],"references":[{"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=30068","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"http://www.openwall.com/lists/oss-security/2023/02/10/1","tags":["mailing-list","x_transferred","article"]},{"url":"https://security.netapp.com/advisory/ntap-20230302-0010/","tags":["x_transferred","advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25139","tags":["advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230302-0010"},{"url":"https://github.com/advisories/GHSA-2g67-jw5m-244m"},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-25139","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2023-25139","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25139.json","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2023-25139","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2023-25139","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.","status":"published","published":"2023-02-03T00:00:00Z","modified":"2026-10-14T22:32:06.634Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:35:19.559321Z"}],"euvd":[{"id":"EUVD-2023-29118","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.","status":"published","published":"2023-02-03T00:00:00Z","modified":"2026-10-14T22:32:06Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T17:27:11.707191Z"}],"ghsa":[{"id":"GHSA-2g67-jw5m-244m","title":"sprintf in the GNU C Library (glibc) 2.37 has a buffer overflow (out-of-bounds write) in some...","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.","status":"published","published":"2023-02-03T06:30:23Z","modified":"2026-10-15T00:30:37Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T15:13:29.286626Z"}],"nvd":[{"id":"CVE-2023-25139","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.","status":"published","published":"2023-02-03T06:15:09.523Z","modified":"2026-10-14T23:17:15.26Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:07:46.064662Z"}],"osv":[{"id":"ALPINE-CVE-2023-25139","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.","status":"published","published":"2023-02-03T06:15:09.523Z","modified":"2026-10-26T17:17:58.612642146Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:27:49.202584Z"},{"id":"BELL-CVE-2023-25139","status":"published","published":"2023-09-19T08:51:35.415765Z","modified":"2026-01-26T09:33:16.113409Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:28:17.742221Z"},{"id":"CVE-2023-25139","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.","status":"published","published":"2023-02-03T00:00:00Z","modified":"2026-10-28T02:30:41.922959654Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:30.709518Z"},{"id":"openSUSE-SU-2024:13123-1","title":"glibc-2.38-1.1 on GA media","description":"These are all security issues fixed in the glibc-2.38-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:30:18.316637Z","updated_at":"2026-11-02T16:58:36.025801Z"}]}}
