{"id":"USN-7064-1","summary":"nano vulnerability","details":"It was discovered that nano allowed a possible privilege escalation\nthrough an insecure temporary file. If nano was killed while editing, the\npermissions granted to the emergency save file could be used by an\nattacker to escalate privileges using a malicious symlink.\n","modified":"2026-02-10T04:45:28Z","published":"2024-10-15T12:29:19Z","related":["UBUNTU-CVE-2024-5742"],"upstream":["CVE-2024-5742","UBUNTU-CVE-2024-5742"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7064-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-5742"}],"affected":[{"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":{"binaries":[{"binary_version":"2.5.3-2ubuntu2+esm1","binary_name":"nano"},{"binary_version":"2.5.3-2ubuntu2+esm1","binary_name":"nano-tiny"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7064-1.json","cves_map":{"cves":[{"id":"CVE-2024-5742","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"}]}],"ecosystem":"Ubuntu:Pro:16.04:LTS"}}},{"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":{"binaries":[{"binary_version":"2.9.3-2ubuntu0.1~esm1","binary_name":"nano"},{"binary_version":"2.9.3-2ubuntu0.1~esm1","binary_name":"nano-tiny"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7064-1.json","cves_map":{"cves":[{"id":"CVE-2024-5742","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"}]}],"ecosystem":"Ubuntu:Pro:18.04:LTS"}}},{"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":{"binaries":[{"binary_version":"4.8-1ubuntu1.1","binary_name":"nano"},{"binary_version":"4.8-1ubuntu1.1","binary_name":"nano-tiny"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7064-1.json","cves_map":{"cves":[{"id":"CVE-2024-5742","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"}]}],"ecosystem":"Ubuntu:20.04:LTS"}}},{"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_version":"6.2-1ubuntu0.1","binary_name":"nano"},{"binary_version":"6.2-1ubuntu0.1","binary_name":"nano-tiny"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7064-1.json","cves_map":{"cves":[{"id":"CVE-2024-5742","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"}]}],"ecosystem":"Ubuntu:22.04:LTS"}}},{"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":{"binaries":[{"binary_version":"7.2-2ubuntu0.1","binary_name":"nano"},{"binary_version":"7.2-2ubuntu0.1","binary_name":"nano-tiny"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7064-1.json","cves_map":{"cves":[{"id":"CVE-2024-5742","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"}]}],"ecosystem":"Ubuntu:24.04:LTS"}}}],"schema_version":"1.7.3"}