Buffer overflow in Mongoose - CVE-2020-25887

 

Buffer overflow in Mongoose - CVE-2020-25887

Published: August 22, 2023 / Updated: June 23, 2025


Vulnerability identifier: #VU111837
CSH Severity: High
CVSS v4.0: 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/E:U/U:Amber
CVE-ID: CVE-2020-25887
CWE-ID: CWE-120
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Cesanta Software Ltd.
Affected software:
Mongoose

Detailed vulnerability description

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.


How to mitigate CVE-2020-25887

Install update from vendor's website.

Sources