{"id":"CVE-2020-5210","aliases":["CVE-2020-5210"],"related":[],"kind":"vulnerability","state":"published","title":"NetHack command line -w option parsing is subject to a buffer overflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En NetHack versiones anteriores a 3.6.5, un argumento no válido para la opción de línea de comando -w puede causar un desbordamiento del búfer resultando en un bloqueo o en una ejecución de código remota/escalada de privilegios. Esta vulnerabilidad afecta a los sistemas que tienen instalado suid/sgid de NetHack y sistemas compartidos que permiten a usuarios influir en las opciones de línea de comandos. Los usuarios deberían actualizar a NetHack versión 3.6.5.","source":"nvd"}],"published":"2020-01-28T17:50:14.000Z","modified":"2026-06-17T03:21:01.900Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"version":"< 3.6.5","status":"affected"}],"vendor":"NetHack","product":"NetHack","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.6.5"}],"vendor":"nethack","product":"nethack","cpe":"cpe:2.3:a:nethack:nethack:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/NetHack/NetHack/security/advisories/GHSA-v5pg-hpjg-9rpp","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/NetHack/NetHack/commit/f3def5c0b999478da2d0a8f0b6a7c370a2065f77","tags":["patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-5210","url":"https://www.cve.org/CVERecord?id=CVE-2020-5210","licence":"CVE Terms of Use","modified":"2024-08-04T08:22:08.904Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-5210","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5210","licence":"Public domain","modified":"2026-06-17T03:21:01.900Z"}],"updatedAt":"2026-11-25T22:57:50.702Z","epss":{"score":0.00802,"percentile":0.5782,"date":"2026-12-01T12:00:22.000Z"}}