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.
Advisories
Source ID Title
EUVD EUVD EUVD-2023-29118 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.
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 26 Mar 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-03-26T14:49:09.815Z

Reserved: 2023-02-03T00:00:00.000Z

Link: CVE-2023-25139

cve-icon Vulnrichment

Updated: 2024-08-02T11:18:35.606Z

cve-icon NVD

Status : Modified

Published: 2023-02-03T06:15:09.523

Modified: 2025-03-26T15:15:48.237

Link: CVE-2023-25139

cve-icon Redhat

Severity : Moderate

Publid Date: 2023-02-03T00:00:00Z

Links: CVE-2023-25139 - Bugzilla

cve-icon OpenCVE Enrichment

No data.