#VU24923 Buffer overflow in NetHack - CVE-2020-5210


Vulnerability identifier: #VU24923

Vulnerability risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2020-5210

CWE-ID: CWE-119

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
NetHack
Client/Desktop applications / Games

Vendor: The NetHack DevTeam

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in an invalid argument to the -w command line option. A remote attacker can trigger memory corruption, cause a denial of service (DoS) condition or execute arbitrary code on the target system with elevated privileges.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Note: This vulnerability affects systems that have NetHack installed suid/sgid and shared systems that allow users to influence command line options.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

NetHack: 3.6.0 - 3.6.4


External links
https://github.com/NetHack/NetHack/commit/f3def5c0b999478da2d0a8f0b6a7c370a2065f77
https://github.com/NetHack/NetHack/security/advisories/GHSA-v5pg-hpjg-9rpp
https://nethack.org/security/CVE-2020-5210.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability