{"id":"USN-8386-1","summary":"nano vulnerabilities","details":"Michał Majchrowicz and Marcin Wyczechowski discovered that Nano created\nthe ~/.local directory with incorrect permissions. In environments with\npermissive umask settings, a local attacker could possibly use this\nissue to inject a malicious launcher file, resulting in information\ndisclosure or other unintended actions. (CVE-2026-6842)\n\nMichał Majchrowicz and Marcin Wyczechowski discovered that Nano\nincorrectly handled directory names when updating the status line. A\nlocal attacker could possibly use this issue to cause Nano to crash,\nresulting in a denial of service. This issue only affected Ubuntu 22.04\nLTS, Ubuntu 24.04 LTS, Ubuntu 25.10, and Ubuntu 26.04 LTS.\n(CVE-2026-6843)","modified":"2026-06-05T03:14:22.429951264Z","published":"2026-06-04T17:00:06Z","related":["UBUNTU-CVE-2026-6842","UBUNTU-CVE-2026-6843"],"upstream":["CVE-2026-6842","CVE-2026-6843","UBUNTU-CVE-2026-6842","UBUNTU-CVE-2026-6843"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8386-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-6842"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-6843"}],"affected":[{"package":{"name":"nano","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/nano?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.3-2ubuntu0.1~esm2"}]}],"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","2.9.3-2ubuntu0.1~esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"nano","binary_version":"2.9.3-2ubuntu0.1~esm2"},{"binary_name":"nano-tiny","binary_version":"2.9.3-2ubuntu0.1~esm2"}]},"database_specific":{"cves_map":{"cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2026-6842"}],"ecosystem":"Ubuntu:Pro:18.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8386-1.json"}},{"package":{"name":"nano","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/nano?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.8-1ubuntu1.1+esm1"}]}],"versions":["4.3-1","4.5-1","4.7-1","4.7-2","4.8-1","4.8-1ubuntu1","4.8-1ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.8-1ubuntu1.1+esm1","binary_name":"nano"},{"binary_name":"nano-tiny","binary_version":"4.8-1ubuntu1.1+esm1"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:20.04:LTS","cves":[{"severity":[{"score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2026-6842"}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8386-1.json"}},{"package":{"name":"nano","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/nano?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.2-1ubuntu0.2"}]}],"versions":["5.6.1-1build1","5.9-1","6.0-1","6.1-1","6.2-1","6.2-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"6.2-1ubuntu0.2","binary_name":"nano"},{"binary_name":"nano-tiny","binary_version":"6.2-1ubuntu0.2"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8386-1.json","cves_map":{"ecosystem":"Ubuntu:22.04:LTS","cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2026-6842"},{"id":"CVE-2026-6843","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}]}}},{"package":{"name":"nano","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/nano?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.2-2ubuntu0.2"}]}],"versions":["7.2-1","7.2-2","7.2-2build1","7.2-2ubuntu0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"7.2-2ubuntu0.2","binary_name":"nano"},{"binary_version":"7.2-2ubuntu0.2","binary_name":"nano-tiny"}]},"database_specific":{"cves_map":{"cves":[{"id":"CVE-2026-6842","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]},{"severity":[{"score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2026-6843"}],"ecosystem":"Ubuntu:24.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8386-1.json"}},{"package":{"name":"nano","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/nano?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4-1ubuntu0.1"}]}],"versions":["8.3-1","8.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"8.4-1ubuntu0.1","binary_name":"nano"},{"binary_name":"nano-tiny","binary_version":"8.4-1ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:25.10","cves":[{"id":"CVE-2026-6842","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2026-6843","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8386-1.json"}},{"package":{"name":"nano","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/nano?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.7.1-1ubuntu0.1"}]}],"versions":["8.4-1","8.6-1","8.7-1","8.7.1-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"nano","binary_version":"8.7.1-1ubuntu0.1"},{"binary_version":"8.7.1-1ubuntu0.1","binary_name":"nano-tiny"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8386-1.json","cves_map":{"ecosystem":"Ubuntu:26.04:LTS","cves":[{"id":"CVE-2026-6842","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2026-6843","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}]}}}],"schema_version":"1.7.5"}