Buffer overflow in Mongoose - CVE-2020-25887
Published: August 22, 2023 / Updated: June 23, 2025
Vulnerability identifier: #VU111837
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-25887
CWE-ID: CWE-120
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
Buffer overflow in mg_resolve_from_hosts_file in Mongoose 6.18, when reading from a crafted hosts file.
Affected software
Mongoose
How to mitigate CVE-2020-25887
Install update from vendor's website.
Mongoose - update to 7.0