{"id":"UBUNTU-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-01-30T02:52:54.286952Z","published":"2024-06-12T09:15:00Z","related":["USN-7064-1","USN-7064-2"],"upstream":["CVE-2024-5742"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-5742"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-5742"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7064-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7064-2"}],"affected":[{"package":{"name":"nano","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/nano@2.2.6-1ubuntu1+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.6-1ubuntu1+esm1"}]}],"versions":["2.2.6-1ubuntu1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"nano","binary_version":"2.2.6-1ubuntu1+esm1"},{"binary_name":"nano-tiny","binary_version":"2.2.6-1ubuntu1+esm1"}],"priority_reason":"Uncommon attack scenario"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5742.json"}},{"package":{"name":"nano","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/nano@2.5.3-2ubuntu2+esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.3-2ubuntu2+esm1"}]}],"versions":["2.4.2-1","2.4.2-1ubuntu1","2.4.3-1","2.5.0-1","2.5.1-1","2.5.2-1","2.5.3-2","2.5.3-2ubuntu1","2.5.3-2ubuntu2"],"ecosystem_specific":{"priority_reason":"Uncommon attack scenario","availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"nano","binary_version":"2.5.3-2ubuntu2+esm1"},{"binary_name":"nano-tiny","binary_version":"2.5.3-2ubuntu2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5742.json"}},{"package":{"name":"nano","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/nano@2.9.3-2ubuntu0.1~esm1?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.3-2ubuntu0.1~esm1"}]}],"versions":["2.8.6-3","2.8.7-1","2.9.0-1","2.9.1-1","2.9.2-1","2.9.3-1","2.9.3-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"nano","binary_version":"2.9.3-2ubuntu0.1~esm1"},{"binary_name":"nano-tiny","binary_version":"2.9.3-2ubuntu0.1~esm1"}],"priority_reason":"Uncommon attack scenario"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5742.json"}},{"package":{"name":"nano","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nano@4.8-1ubuntu1.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.8-1ubuntu1.1"}]}],"versions":["4.3-1","4.5-1","4.7-1","4.7-2","4.8-1","4.8-1ubuntu1"],"ecosystem_specific":{"priority_reason":"Uncommon attack scenario","availability":"No subscription required","binaries":[{"binary_name":"nano","binary_version":"4.8-1ubuntu1.1"},{"binary_name":"nano-tiny","binary_version":"4.8-1ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5742.json"}},{"package":{"name":"nano","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/nano@6.2-1ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.2-1ubuntu0.1"}]}],"versions":["5.6.1-1build1","5.9-1","6.0-1","6.1-1","6.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"nano","binary_version":"6.2-1ubuntu0.1"},{"binary_name":"nano-tiny","binary_version":"6.2-1ubuntu0.1"}],"priority_reason":"Uncommon attack scenario","availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5742.json"}},{"package":{"name":"nano","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/nano@7.2-2ubuntu0.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.2-2ubuntu0.1"}]}],"versions":["7.2-1","7.2-2","7.2-2build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"nano","binary_version":"7.2-2ubuntu0.1"},{"binary_name":"nano-tiny","binary_version":"7.2-2ubuntu0.1"}],"priority_reason":"Uncommon attack scenario"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5742.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}