{"id":"UBUNTU-CVE-2020-5209","details":"In NetHack before 3.6.5, unknown options starting with -de and -i 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.","modified":"2025-10-24T04:48:17Z","published":"2020-01-28T18:15:00Z","upstream":["CVE-2020-5209"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-5209"},{"type":"REPORT","url":"https://github.com/NetHack/NetHack/security/advisories/GHSA-fw72-r8xm-45p8"},{"type":"REPORT","url":"https://github.com/NetHack/NetHack/commit/f3def5c0b999478da2d0a8f0b6a7c370a2065f77"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-5209"}],"affected":[{"package":{"name":"nethack","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/nethack@3.4.3-15build1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.3-15","3.4.3-15build1"],"ecosystem_specific":{"binaries":[{"binary_name":"nethack-common","binary_version":"3.4.3-15build1"},{"binary_name":"nethack-console","binary_version":"3.4.3-15build1"},{"binary_name":"nethack-lisp","binary_version":"3.4.3-15build1"},{"binary_name":"nethack-x11","binary_version":"3.4.3-15build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5209.json"}},{"package":{"name":"nethack","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nethack@3.6.0-4?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.0-4"],"ecosystem_specific":{"binaries":[{"binary_name":"nethack-common","binary_version":"3.6.0-4"},{"binary_name":"nethack-console","binary_version":"3.6.0-4"},{"binary_name":"nethack-lisp","binary_version":"3.6.0-4"},{"binary_name":"nethack-x11","binary_version":"3.6.0-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5209.json"}},{"package":{"name":"nethack","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nethack@3.6.1-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"nethack-common","binary_version":"3.6.1-1"},{"binary_name":"nethack-console","binary_version":"3.6.1-1"},{"binary_name":"nethack-lisp","binary_version":"3.6.1-1"},{"binary_name":"nethack-x11","binary_version":"3.6.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5209.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}