CVE-2020-5210: NetHack command line -w option parsing is subject to a buffer overflow

Published Jan 28, 2020
·
Updated

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

1 affected component
NetHack NetHack<3.6.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade NetHack to a version that resolves this vulnerability.

    Fixed in 3.6.5

Event History

Jan 28, 2020
CVE Published
via MITRE·05:50 PM
Data Sourced
via MITRE·05:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

How do I fix CVE-2020-5210?

To fix CVE-2020-5210, upgrade to NetHack version 3.6.5 or later.

3

Which versions of NetHack are affected by CVE-2020-5210?

CVE-2020-5210 affects all versions of NetHack prior to 3.6.5.

4

Can CVE-2020-5210 lead to data compromise?

Yes, CVE-2020-5210 can potentially lead to data compromise through remote code execution.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203