{"id":"UBUNTU-CVE-2020-5212","details":"In NetHack before 3.6.5, an extremely long value for the MENUCOLOR configuration file 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 upload their own configuration files. Users should upgrade to NetHack 3.6.5.","modified":"2025-10-24T04:48:17Z","published":"2020-01-28T18:15:00Z","upstream":["CVE-2020-5212"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-5212"},{"type":"REPORT","url":"https://github.com/NetHack/NetHack/security/advisories/GHSA-g89f-m829-4m56"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-5212"}],"affected":[{"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_version":"3.6.0-4","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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5212.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_version":"3.6.1-1","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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5212.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:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}