Description
NetHack is a single player dungeon exploration game. Starting with version 3.6.2 and prior to version 3.6.7, illegal input to the "C" (call) command can cause a buffer overflow and crash the NetHack process. This vulnerability may be a security issue for systems that have NetHack installed suid/sgid and for shared systems. For all systems, it may result in a process crash. This issue is resolved in NetHack 3.6.7. There are no known workarounds.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| NetHack | NetHack | >= 3.6.2, < 3.6.7 | — |
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.7-1 | — |
| Debian 13 | nethack | 3.6.7-1 | — |
| Debian 12 | nethack | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | nethack | No fix yet | — |
| Ubuntu 26.04 LTS | nethack | No fix yet | — |
| Ubuntu 25.10 | nethack | No fix yet | — |
| Ubuntu 24.04 LTS | nethack | No fix yet | — |
| Ubuntu 22.04 LTS | nethack | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | nethack | No fix yet | — |
| Ubuntu 18.04 LTS | nethack | No fix yet | — |
| Ubuntu 16.04 LTS | nethack | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | nethack | 3.6.7-r0 | — |
| Alpine v3.23 | nethack | 3.6.7-r0 | — |
| Alpine v3.22 | nethack | 3.6.7-r0 | — |
| Alpine v3.21 | nethack | 3.6.7-r0 | — |
| Alpine v3.20 | nethack | 3.6.7-r0 | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | nethack | 3.6.7-r0 | — |
| Alpine v3.18 | nethack | 3.6.7-r0 | — |