{"id":"CVE-2019-19905","aliases":["ALPINE-CVE-2019-19905","DEBIAN-CVE-2019-19905","EUVD-2019-9497","GHSA-3cm7-rgh5-9pq5","GHSA-fqgf-vjr9-95rf","MGASA-2021-0077","UBUNTU-CVE-2019-19905"],"status":"published","title":"NetHack before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines...","description":"NetHack 3.6.x before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines from configuration files. This affects systems that have NetHack installed suid/sgid, and shared systems that allow users to upload their own configuration files.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.03384,"percentile":0.88896,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-120"],"published":"2019-12-19T17:39:24Z","modified":"2026-11-03T06:31:56Z","exploits":[{"source":"pocgithub","id":"dpmdpm2/CVE-2019-19905","title":"dpmdpm2/CVE-2019-19905","date":"2020-03-07","url":"https://github.com/dpmdpm2/CVE-2019-19905"}],"fixes":[{"ecosystem":"Alpine:v3.11","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"nethack","fixed_in":["3.6.4-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"nethack","fixed_in":["3.6.6-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"nethack","fixed_in":["3.6.6-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"nethack","fixed_in":["3.6.6-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.11","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.4-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.6-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.6-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.6-1"}]}]},{"source":"osv","ecosystem":"Mageia:7","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.6-1.mga7"}]}],"bundled":8},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.0-4"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"nethack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.1-1"]}],"products":[{"vendor":"nethack","product":"nethack"}],"references":[{"url":"https://bugs.debian.org/947005","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/NetHack/NetHack/commit/f4a840a48f4bcf11757b3d859e9d53cc9d5ef226","tags":["x_refsource_MISC","x_transferred","Patch","fix","report"]},{"url":"https://github.com/NetHack/NetHack/commit/f001de79542b8c38b1f8e6d7eaefbbd28ab94b47","tags":["x_refsource_MISC","x_transferred","Patch","fix","report"]},{"url":"https://github.com/NetHack/NetHack/security/advisories/GHSA-3cm7-rgh5-9pq5","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nethack.org/security/","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19905"},{"url":"https://nethack.org/security"},{"url":"https://github.com/advisories/GHSA-fqgf-vjr9-95rf"},{"url":"https://security.alpinelinux.org/vuln/CVE-2019-19905","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-19905","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0077.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=26228","tags":["report"]},{"url":"https://nethack.org/v362/release.html","tags":["web"]},{"url":"https://nethack.org/v363/release.html","tags":["web"]},{"url":"https://nethack.org/v364/release.html","tags":["web"]},{"url":"https://nethack.org/v365/release.html","tags":["web"]},{"url":"https://nethack.org/v366/release.html","tags":["web"]},{"url":"https://www.nethack.org/security/CVE-2019-19905.html","tags":["advisory"]},{"url":"https://www.nethack.org/security/CVE-2020-5209.html","tags":["advisory"]},{"url":"https://www.nethack.org/security/CVE-2020-5210.html","tags":["advisory"]},{"url":"https://www.nethack.org/security/CVE-2020-5211.html","tags":["advisory"]},{"url":"https://www.nethack.org/security/CVE-2020-5212.html","tags":["advisory"]},{"url":"https://www.nethack.org/security/CVE-2020-5213.html","tags":["advisory"]},{"url":"https://www.nethack.org/security/CVE-2020-5214.html","tags":["advisory"]},{"url":"https://www.nethack.org/security/CVE-2020-5254.html","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-19905","tags":["report"]},{"url":"https://nethack.org/security/CVE-2019-19905.html","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-19905","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2019-19905","description":"NetHack 3.6.x before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines from configuration files. This affects systems that have NetHack installed suid/sgid, and shared systems that allow users to upload their own configuration files.","status":"published","published":"2019-12-19T17:39:24Z","modified":"2024-08-05T02:32:08.913Z","updated_at":"2026-11-02T14:20:20.74896Z"}],"euvd":[{"id":"EUVD-2019-9497","description":"NetHack 3.6.x before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines from configuration files. This affects systems that have NetHack installed suid/sgid, and shared systems that allow users to upload their own configuration files.","status":"published","published":"2019-12-19T17:39:24Z","modified":"2024-08-05T02:32:08Z","updated_at":"2026-11-03T02:40:23.78072Z"}],"ghsa":[{"id":"GHSA-fqgf-vjr9-95rf","title":"NetHack before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines...","description":"NetHack before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines from configuration files. This affects systems that have NetHack installed suid/sgid, and shared systems that allow users to upload their own configuration files.","status":"published","published":"2022-05-24T17:04:46Z","modified":"2024-04-04T02:44:36Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T14:56:11.559223Z"}],"nvd":[{"id":"CVE-2019-19905","description":"NetHack 3.6.x before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines from configuration files. This affects systems that have NetHack installed suid/sgid, and shared systems that allow users to upload their own configuration files.","status":"published","published":"2019-12-19T18:15:12.647Z","modified":"2026-06-17T02:27:25.547Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T14:05:40.856496Z"}],"osv":[{"id":"ALPINE-CVE-2019-19905","description":"NetHack 3.6.x before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines from configuration files. This affects systems that have NetHack installed suid/sgid, and shared systems that allow users to upload their own configuration files.","status":"published","published":"2019-12-19T18:15:12.647Z","modified":"2026-11-03T06:31:56.010476954Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T07:18:15.355745Z"},{"id":"CVE-2019-19905","description":"NetHack 3.6.x before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines from configuration files. This affects systems that have NetHack installed suid/sgid, and shared systems that allow users to upload their own configuration files.","status":"published","published":"2019-12-19T18:15:12.647Z","modified":"2026-10-20T13:44:52.869695016Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:12.010761Z"},{"id":"DEBIAN-CVE-2019-19905","description":"NetHack 3.6.x before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines from configuration files. This affects systems that have NetHack installed suid/sgid, and shared systems that allow users to upload their own configuration files.","status":"published","published":"2019-12-19T18:15:12.647Z","modified":"2026-09-21T07:03:09.836573258Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:32.221385Z"},{"id":"UBUNTU-CVE-2019-19905","description":"NetHack 3.6.x before 3.6.4 is prone to a buffer overflow vulnerability when reading very long lines from configuration files. This affects systems that have NetHack installed suid/sgid, and shared systems that allow users to upload their own configuration files.","status":"published","published":"2019-12-19T18:15:00Z","modified":"2025-10-24T04:48:07Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:21.213407Z"},{"id":"MGASA-2021-0077","title":"Updated nethack packages fix security vulnerabilities","description":"Updated nethack packages fix security vulnerabilities:\n\nNetHack 3.6.x before 3.6.4 is prone to a buffer overflow vulnerability when\nreading very long lines from configuration files. This affects systems that\nhave NetHack installed suid/sgid, and shared systems that allow users to\nupload their own configuration files (CVE-2019-19905).\n\nIn NetHack before 3.6.5, unknown options starting with -de and -i can cause\na buffer overflow resulting in a crash or remote code execution/privilege\nescalation. This vulnerability affects systems that have NetHack installed\nsuid/sgid and shared systems that allow users to influence command line\noptions (CVE-2020-5209).\n\nIn NetHack before 3.6.5, an invalid argument to the -w command line option\ncan cause a buffer overflow resulting in a crash or remote code\nexecution/privilege escalation. This vulnerability affects systems that have\nNetHack installed suid/sgid and shared systems that allow users to influence\ncommand line options (CVE-2020-5210).\n\nIn NetHack before 3.6.5, an invalid extended command in value for the\nAUTOCOMPLETE configuration file option can cause a buffer overflow resulting\nin a crash or remote code execution/privilege escalation. This vulnerability\naffects systems that have NetHack installed suid/sgid and shared systems\nthat allow users to upload their own configuration files (CVE-2020-5211).\n\nIn NetHack before 3.6.5, an extremely long value for the MENUCOLOR\nconfiguration file option can cause a buffer overflow resulting in a crash\nor remote code execution/privilege escalation. This vulnerability affects\nsystems that have NetHack installed suid/sgid and shared systems that allow\nusers to upload their own configuration files (CVE-2020-5212).\n\nIn NetHack before 3.6.5, too long of a value for the SYMBOL configuration\nfile option can cause a buffer overflow resulting in a crash or remote code\nexecution/privilege escalation. This vulnerability affects systems that have\nNetHack installed suid/sgid and shared systems that allow users to upload\ntheir own configuration files (CVE-2020-5213).\n\nIn NetHack before 3.6.5, detecting an unknown configuration file option can\ncause a buffer overflow resulting in a crash or remote code\nexecution/privilege escalation. This vulnerability affects systems that have\nNetHack installed suid/sgid and shared systems that allow users to upload\ntheir own configuration files (CVE-2020-5214).\n\nIn NetHack before 3.6.6, some out-of-bound values for the hilite_status\noption can be exploited (CVE-2020-5254).\n\nThe nethack package has been updated to version 3.6.6, fixing these issues\nand other bugs. See the upstream release notes for details.\n","status":"published","published":"2021-02-10T18:41:52Z","modified":"2026-04-16T04:42:35.79467705Z","updated_at":"2026-11-02T15:49:41.509337Z"}]}}
