CVE-2020-5210: NetHack command line -w option parsing is subject to a buffer overflow
In NetHack before 3.6.5, an invalid argument to the -w command line option can cause a buffer overflow resulting in a crash or remote code execution/privilege escalation. This vulnerability affects systems that have NetHack installed suid/sgid and shared systems that allow users to influence command line options. Users should upgrade to NetHack 3.6.5.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
NetHackto a version that resolves this vulnerability.Fixed in 3.6.5
Event History
Frequently Asked Questions
What is the severity of CVE-2020-5210?
CVE-2020-5210 has a high severity due to its potential for remote code execution and privilege escalation.
How do I fix CVE-2020-5210?
To fix CVE-2020-5210, upgrade to NetHack version 3.6.5 or later.
Which versions of NetHack are affected by CVE-2020-5210?
CVE-2020-5210 affects all versions of NetHack prior to 3.6.5.
Can CVE-2020-5210 lead to data compromise?
Yes, CVE-2020-5210 can potentially lead to data compromise through remote code execution.
Is user input a factor in the exploitation of CVE-2020-5210?
Yes, an invalid argument provided by a user to the -w command line option can trigger the vulnerability in CVE-2020-5210.