{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-5742","id":"CVE-2024-5742","title":"Nano: running `chmod` and `chown` on the filename allows malicious user to replace the emergency file with a malicious symlink to a root-owned file","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.","descriptionLong":"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.","published":"2024-06-12T08:53:02.256Z","updated":"2026-11-06T15:17:03.803Z","reserved":"2024-06-07T12:22:38.441Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","rating":"medium","source":"redhat"},"metrics":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","rating":"medium","source":"redhat"},{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","rating":"medium","source":"redhat.com"},{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["nano","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7"],"affectedProducts":[{"vendor":"","product":"nano","defaultStatus":"affected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","defaultStatus":"affected","versions":[{"version":"0:2.9.8-3.el8_10","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","defaultStatus":"affected","versions":[{"version":"0:5.6.1-6.el9","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","defaultStatus":"unknown","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","defaultStatus":"unknown","versions":[],"platforms":[]}],"packages":[],"cwes":["CWE-59"],"aliases":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:6986","tags":["vendor-advisory","x_refsource_REDHAT","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:9430","tags":["vendor-advisory","x_refsource_REDHAT","advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-5742","tags":["vdb-entry","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2278574","tags":["issue-tracking","x_refsource_REDHAT","x_transferred","Issue Tracking","Vendor Advisory","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html","tags":["x_transferred","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00344,"epssPercentile":0.28561,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-5742","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5742","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-5742","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-5742","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}