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.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nethack | 3.6.6-1 | — |
| Debian 13 | nethack | 3.6.6-1 | — |
| Debian 12 | nethack | 3.6.6-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | nethack | No fix yet | — |
| Ubuntu 18.04 LTS | nethack | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | nethack | 3.6.4-r0 | — |
| Alpine v3.23 | nethack | 3.6.4-r0 | — |
| Alpine v3.22 | nethack | 3.6.4-r0 | — |
| Alpine v3.21 | nethack | 3.6.4-r0 | — |
| Alpine v3.20 | nethack | 3.6.4-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | nethack | 3.6.4-r0 | — |
| Alpine v3.18 | nethack | 3.6.4-r0 | — |
| Alpine v3.17 | nethack | 3.6.4-r0 | — |
| Alpine v3.16 | nethack | 3.6.4-r0 | — |
| Alpine v3.15 | nethack | 3.6.4-r0 | — |
| Alpine v3.14 | nethack | 3.6.4-r0 | — |
| Alpine v3.13 | nethack | 3.6.4-r0 | — |
| Alpine v3.12 | nethack | 3.6.4-r0 | — |
| Alpine v3.11 | nethack | 3.6.4-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
dpmdpm2/CVE-2019-19905 ★ 0 · Mar 7, 2020
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://bugs.debian.org/947005
- https://github.com/NetHack/NetHack/commit/f4a840a48f4bcf11757b3d859e9d53cc9d5ef226
- https://github.com/NetHack/NetHack/commit/f001de79542b8c38b1f8e6d7eaefbbd28ab94b47
- https://github.com/NetHack/NetHack/security/advisories/GHSA-3cm7-rgh5-9pq5
- https://nethack.org/security/