# CVE-2020-5253: Privilege escalation in NetHack

- Severity: Low 3.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2020-03-10T16:35:14.000Z
- Modified: 2026-06-17T03:21:08.270Z
- Weaknesses: CWE-184, CWE-269
- Assigned by: GitHub_M

## Description

NetHack before version 3.6.0 allowed malicious use of escaping of characters in the configuration file (usually .nethackrc) which could be exploited. This bug is patched in NetHack 3.6.0.

(As written by CVE List.)

## Affected

- NetHack NetHack: < 3.6.0; before 3.6.0

## Every score

- GitHub_M: CVSS:3.1 3.9 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/NetHack/NetHack/security/advisories/GHSA-2c7p-3fj4-223m> (third-party-advisory)
- <https://github.com/NetHack/NetHack/commits/612755bfb5c412079795c68ba392df5d93874ed8> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2020-5253](https://www.cve.org/CVERecord?id=CVE-2020-5253), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-5253](https://nvd.nist.gov/vuln/detail/CVE-2020-5253), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5253 · Whole record: https://cve.day/CVE-2020-5253.json · Rebuilt by cve.day 2026-11-25T22:57:51.081Z
