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
CVSSv4.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
Vulnerable software:
Mongoose
Software vendor:
Cesanta Software Ltd.

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.


Remediation

Install update from vendor's website.

External links