CVE-2023-25139 Memory corruption in n/a

Critical 9.8 Published Updated

A buffer overflow in glibc sprintf allows attackers to write beyond bounds when formatting padded numbers, potentially leading to code execution or crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-25139?

CVE-2023-25139 is a critical memory corruption vulnerability in Gnu Glibc, published on 3 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-787

Which versions are affected by CVE-2023-25139?

It affects 1 product.

Linux distribution packages (1)
glibc openSUSE:TumbleweedAll versions2.38-1.1

Products include Gnu Glibc.

How do I fix CVE-2023-25139?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-25139 being exploited?

There is no known exploitation of CVE-2023-25139 in the wild and no public exploit code.

All Gnu Glibc vulnerabilities

Sources

Also known as ALPINE-CVE-2023-25139, BELL-CVE-2023-25139, CLEANSTART-2023-PY66778, GHSA-2g67-jw5m-244m, openSUSE-SU-2024:13123-1.

Is CVE-2023-25139 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free