{"schemaVersion":3,"id":"CVE-2024-5742","aliases":["MGASA-2024-0223","openSUSE-SU-2024:0157-1","openSUSE-SU-2024:0157-2","RHSA-2024:6986","RHSA-2024:9430","UBUNTU-CVE-2024-5742","USN-7064-1","USN-7064-2","DEBIAN-CVE-2024-5742","DLA-3831-1","openSUSE-SU-2024:14034-1"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2024-06-12T08:53:02.256Z","modified":"2026-10-15T00:29:33.540Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":2.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":2.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":2.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00344,"percentile":0.26502,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.0020000000000000052,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00346},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00344,"percentile":0.26502}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00344,"percentile":0.26502}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"debian","product":"nano","name":"nano","label":"nano","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/nano","purlType":"deb","versions":[{"text":"< 3.2-3+deb10u1","noFixRecorded":false,"fixedIn":null},{"text":"< 7.2-1+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 8.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.2-3+deb10u1 | < 7.2-1+deb12u1 | < 8.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"nano","name":"nano","label":"nano","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/nano","purlType":"deb","versions":[{"text":"< 2.5.3-2ubuntu2+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.9.3-2ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.8-1ubuntu1.1","noFixRecorded":false,"fixedIn":null},{"text":"< 6.2-1ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 7.2-2ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.2.6-1ubuntu1+esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.3-2ubuntu2+esm1 | < 2.9.3-2ubuntu0.1~esm1 | < 4.8-1ubuntu1.1 | < 6.2-1ubuntu0.1 | < 7.2-2ubuntu0.1 | < 2.2.6-1ubuntu1+esm1","eol":null,"hubHref":null},{"vendor":"gnu","product":"nano","name":"nano","label":"nano","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.2.0, < 8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.2.0, < 8.0","eol":null,"hubHref":"/vendor/gnu/nano"},{"vendor":"mageia","product":"nano","name":"nano","label":"nano","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/nano","purlType":"rpm","versions":[{"text":"< 7.2-1.1.mga9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.2-1.1.mga9","eol":null,"hubHref":null},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"6.0","noFixRecorded":false,"fixedIn":null},{"text":"7.0","noFixRecorded":false,"fixedIn":null},{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.0 | 7.0 | 8.0 | 9.0","eol":{"isEol":true,"eolDate":"2020-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"6","label":"6 (ELS)","eolFrom":"2020-11-30T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"6.10"},"product":{"name":"rhel","label":"Red Hat Enterprise Linux","category":"os"}},"hubHref":"/vendor/redhat/enterprise_linux"},{"vendor":"opensuse","product":"nano&distro=openSUSE Leap 15.5","name":"nano","label":"nano&distro=openSUSE Leap 15.5","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/nano&distro=openSUSE Leap 15.5","purlType":"rpm","versions":[{"text":"< 7.2-bp156.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.2-bp156.3.3.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"nano&distro=openSUSE Leap 15.6","name":"nano","label":"nano&distro=openSUSE Leap 15.6","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/nano&distro=openSUSE Leap 15.6","purlType":"rpm","versions":[{"text":"< 7.2-bp156.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.2-bp156.3.3.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"nano&distro=openSUSE Tumbleweed","name":"nano","label":"nano&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/nano&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 8.0-2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.0-2.1","eol":null,"hubHref":null},{"vendor":"redhat","product":"nano","name":"nano","label":"nano","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/nano","purlType":"rpm","versions":[{"text":"< 0:2.9.8-3.el8_10","noFixRecorded":false,"fixedIn":null},{"text":"< 0:5.6.1-6.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.9.8-3.el8_10 | < 0:5.6.1-6.el9","eol":null,"hubHref":null},{"vendor":"redhat","product":"nano-debuginfo","name":"nano-debuginfo","label":"nano-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/nano-debuginfo","purlType":"rpm","versions":[{"text":"< 0:2.9.8-3.el8_10","noFixRecorded":false,"fixedIn":null},{"text":"< 0:5.6.1-6.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.9.8-3.el8_10 | < 0:5.6.1-6.el9","eol":null,"hubHref":null},{"vendor":"redhat","product":"nano-debugsource","name":"nano-debugsource","label":"nano-debugsource","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/nano-debugsource","purlType":"rpm","versions":[{"text":"< 0:2.9.8-3.el8_10","noFixRecorded":false,"fixedIn":null},{"text":"< 0:5.6.1-6.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.9.8-3.el8_10 | < 0:5.6.1-6.el9","eol":null,"hubHref":null},{"vendor":"suse","product":"nano&distro=SUSE Package Hub 15 SP5","name":"nano","label":"nano&distro=SUSE Package Hub 15 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/nano&distro=SUSE Package Hub 15 SP5","purlType":"rpm","versions":[{"text":"< 7.2-bp156.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.2-bp156.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"nano&distro=SUSE Package Hub 15 SP6","name":"nano","label":"nano&distro=SUSE Package Hub 15 SP6","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/nano&distro=SUSE Package Hub 15 SP6","purlType":"rpm","versions":[{"text":"< 7.2-bp156.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.2-bp156.3.3.1","eol":null,"hubHref":null}],"affectedCount":13,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:6986","label":"access.redhat.com/errata/RHSA-2024:6986","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:9430","label":"access.redhat.com/errata/RHSA-2024:9430","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-5742","label":"access.redhat.com/security/cve/CVE-2024-5742","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","REPORT","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2278574","label":"bugzilla.redhat.com/show_bug.cgi?id=2278574","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT","Vendor Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html","label":"lists.debian.org/debian-lts-announce/2024/06/msg00006.html","hostname":"lists.debian.org","tags":["X Transferred"]},{"url":"https://advisories.mageia.org/MGASA-2024-0223.html","label":"advisories.mageia.org/MGASA-2024-0223.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=33297","label":"bugs.mageia.org/show_bug.cgi?id=33297","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/message/VCJGQ6SCOSZGXAPYA7GYUT3M6ZPBLO5V/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["WEB"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VCJGQ6SCOSZGXAPYA7GYUT3M6ZPBLO5V/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1226099","label":"bugzilla.suse.com/1226099","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2024-5742","label":"www.suse.com/security/cve/CVE-2024-5742","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/GBANP4TJZOYQBX7QCCMXMTPLJ7XCVTTU/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#low","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_6986.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_6986.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-5742","label":"www.cve.org/CVERecord?id=CVE-2024-5742","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5742","label":"nvd.nist.gov/vuln/detail/CVE-2024-5742","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.5_release_notes/index","label":"docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.5_release_notes/index","hostname":"docs.redhat.com","tags":["ARTICLE"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_9430.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_9430.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-5742","label":"ubuntu.com/security/CVE-2024-5742","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7064-1","label":"ubuntu.com/security/notices/USN-7064-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-7064-2","label":"ubuntu.com/security/notices/USN-7064-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-5742","label":"security-tracker.debian.org/tracker/CVE-2024-5742","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"cert-portal.siemens.com/productcert/html/ssa-398330.html","hostname":"cert-portal.siemens.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-06-12T08:53:02.256Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-15T00:29:33.540Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T18:32:03.382Z","stale":false,"partial":false}}