{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-5213 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2020-5213 is a medium-severity memory corruption vulnerability in NetHack, published on 28 Jan 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5213 and fix it if it is affected.\n\nWhat it is: CVE-2020-5213 is a medium-severity memory corruption vulnerability in NetHack, published on 28 Jan 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-5213 in the wild and no public exploit code.\n\nAffected product: NetHack. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-5213/ (Markdown: https://insights.sbomify.com/CVE-2020-5213/index.md)","id":"CVE-2020-5213","markdown":"https://insights.sbomify.com/CVE-2020-5213/index.md","name":"CVE-2020-5213","record":{"aliases":["DEBIAN-CVE-2020-5213","GHSA-rr25-4v34-pr7v","UBUNTU-CVE-2020-5213"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"NetHack game","requires_auth":"low_privilege","summary":"Attackers can trigger a buffer overflow via long SYMBOL config values in suid/sgid NetHack installations, leading to code execution or privilege escalation.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nethack","vendor":"nethack"}],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"description":"In NetHack before 3.6.5, too long of a value for the SYMBOL configuration file 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 upload their own configuration files. Users should upgrade to NetHack 3.6.5.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"NetHack SYMBOL configuration file option is subject to a buffer overflow","id":"CVE-2020-5213","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2020"},"n_packages":0,"n_references":1,"next":{"headline":"NetHack error recovery after syntax error in configuration file is subject to a buffer overflow","id":"CVE-2020-5214"},"packages":[],"prev":{"headline":"NetHack MENUCOLOR configuration file option is subject to a buffer overflow","id":"CVE-2020-5212"},"products":["NetHack"],"published":"2020-01-28","related":[{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2019-19905","kev_date_added":null,"published":"2019-12-19"},{"cvss_score":5.5,"headline":"NetHack Call command buffer overflow","id":"CVE-2023-24809","kev_date_added":null,"published":"2023-02-17"},{"cvss_score":5,"headline":"NetHack command line parsing of options starting with -de and -i is subject to a buffer overflow","id":"CVE-2020-5209","kev_date_added":null,"published":"2020-01-28"},{"cvss_score":5,"headline":"NetHack command line -w option parsing is subject to a buffer overflow","id":"CVE-2020-5210","kev_date_added":null,"published":"2020-01-28"},{"cvss_score":5,"headline":"NetHack AUTOCOMPLETE configuration file option is subject to a buffer overflow","id":"CVE-2020-5211","kev_date_added":null,"published":"2020-01-28"},{"cvss_score":5,"headline":"NetHack MENUCOLOR configuration file option is subject to a buffer overflow","id":"CVE-2020-5212","kev_date_added":null,"published":"2020-01-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["NetHack"]},"summary":"Attackers can trigger a buffer overflow via long SYMBOL config values in suid/sgid NetHack installations, leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2020-5213/"}