CVE-2020-25887 Memory corruption in n/a
A buffer overflow in the Mongoose library allows attackers to execute arbitrary code or cause denial of service via a crafted hosts file.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-25887?
CVE-2020-25887 is a high-severity memory corruption vulnerability in Cesanta Mongoose, published on 22 Aug 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Buffer overflow in mg_resolve_from_hosts_file in Mongoose 6.18, when reading from a crafted hosts file.
Weakness: CWE-120
Which versions are affected by CVE-2020-25887?
It affects 1 product.
Products include Cesanta Mongoose.
How do I fix CVE-2020-25887?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2020-25887 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-25887 exists.
Other vulnerabilities in Cesanta Mongoose
Sources
Also known as DEBIAN-CVE-2020-25887, GHSA-mj7x-c9vq-67qh.