Skip to content
OpenAdvisories
Medium · 5.0 CVE-2020-5210 EUVD-2020-26450

NetHack command line -w option parsing is subject to a buffer overflow

Published Jan 28, 2020 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
NetHack NetHack < 3.6.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nethack 3.6.6-1 —
Debian 13 nethack 3.6.6-1 —
Debian 12 nethack 3.6.6-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS nethack No fix yet —
Ubuntu 18.04 LTS nethack No fix yet —

References