CVE-2023-25139CWE-787

CVE-2023-25139

Critical · published February 3, 2023

CVSS v3.1
9.8
EPSS
1%
Percentile
74.0
In the wild
Unconfirmed
What it is

🔥 A classic case of writing too much! Glibc 2.37 has a buffer overflow that strikes when it tries to format a number into a string, spilling over by two bytes! Think of it like packing a suitcase for a trip. If you’ve measured your bag just right for a specific outfit, but then try to stuff in an oversized pair of shoes, you're going to end up with a mess all over the floor! An attacker could exploit this vulnerability to overwrite adjacent memory, potentially leading to arbitrary code execution. This means they could hijack the system, install malware, or extract sensitive information, all from a seemingly innocent number formatting operation!

Put simply

Think of it like packing a suitcase for a trip. If you’ve measured your bag just right for a specific outfit, but then try to stuff in an oversized pair of shoes, you're going to end up with a mess all over the floor! This buffer overflow occurs when the 'sprintf' function writes beyond the allocated space for a string representation of a number, especially when formatted with padding and thousands separators. It's a perfect storm of a small error causing big chaos!

What to do

An attacker could exploit this vulnerability to overwrite adjacent memory, potentially leading to arbitrary code execution. This means they could hijack the system, install malware, or extract sensitive information, all from a seemingly innocent number formatting operation! To mitigate this issue, update glibc to the patched version as soon as it’s available. Review your code for any use of 'sprintf' and consider using safer alternatives like 'snprintf' to prevent similar exploits in the future. You've got this! Stay vigilant, update your libraries, and keep your systems secure! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01496 · 74.0th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2023-02-03T11:15Z
Affected products (1)
ProductVersionsFixed in
gnu/glibcall versions—
References (7)
EPSS history
Timeline
  • 03 FEB 00:00Z
    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
    cvelistv5