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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.51%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-02-03T00:00:00.000Z
- Modified: 2026-10-14T23:17:15.260Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu glibc: 2.37

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://sourceware.org/bugzilla/show_bug.cgi?id=30068> (exploit, issue-tracking, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2023/02/10/1> (mailing-list)
- <https://security.netapp.com/advisory/ntap-20230302-0010/>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2023-25139](https://www.cve.org/CVERecord?id=CVE-2023-25139), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2023-25139](https://nvd.nist.gov/vuln/detail/CVE-2023-25139), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2023-25139 · Whole record: https://cve.day/CVE-2023-25139.json · Rebuilt by cve.day 2026-11-25T22:58:21.818Z
