{"id":"CVE-2024-5742","details":"A vulnerability was found in GNU Nano that allows a possible privilege escalation through an insecure temporary file. If Nano is killed while editing, a file it saves to an emergency file with the permissions of the running user provides a window of opportunity for attackers to escalate privileges through a malicious symlink.","modified":"2026-04-16T00:03:54.570572273Z","published":"2024-06-12T09:15:23.037Z","related":["ALSA-2024:6986","ALSA-2024:9430","openSUSE-SU-2024:0157-1","openSUSE-SU-2024:0157-2","openSUSE-SU-2024:14034-1"],"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:6986"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:9430"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-5742"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2278574"}],"affected":[{"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"2.2.0"},{"fixed":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"6.0"}]},{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-5742.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"}]}