Description
A flaw was found in nano. In environments with permissive umask settings, a local attacker can exploit incorrect directory permissions (0777 instead of 0700) for the `~/.local` directory. This allows the attacker to inject a malicious `.desktop` launcher, which could lead to unintended actions or information disclosure if the launcher is subsequently processed.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | nano | 2.9.1 – < 9.0 | 9.0 |
| Red Hat | Red Hat Enterprise Linux 10 | — | — |
| Red Hat | Red Hat Enterprise Linux 6 | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat OpenShift Container Platform 4 | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nano | 9.0-1 | — |
| Debian 13 | nano | 8.4-1+deb13u1 | — |
| Debian 12 | nano | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | nano | 8.7.1-1ubuntu0.1 | USN-8386-1 |
| Ubuntu 25.10 | nano | 8.4-1ubuntu0.1 | USN-8386-1 |
| Ubuntu 24.04 LTS | nano | 7.2-2ubuntu0.2 | USN-8386-1 |
| Ubuntu 22.04 LTS | nano | 6.2-1ubuntu0.2 | USN-8386-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | nano | 4.8-1ubuntu1.1+esm1 | USN-8386-1 |
| Ubuntu Pro 18.04 LTS | nano | 2.9.3-2ubuntu0.1~esm2 | USN-8386-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | nano | 9.0-2.1 | openSUSE-SU-2026:10851-1 |
| openSUSE Leap 16.0 | nano | 9.1-bp160.1.1 | openSUSE-SU-2026:21166-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | nano | 6.4-3 | — |
Advisories 3
- openSUSE-SU-2026:21166-1 Security update for nano SUSE / openSUSE Security Updates · Jun 30, 2026
- USN-8386-1 nano vulnerabilities Ubuntu Security Notices (USN) · Jun 5, 2026
- openSUSE-SU-2026:10851-1 nano-9.0-2.1 on GA media SUSE / openSUSE Security Updates · May 25, 2026
References
- https://access.redhat.com/security/cve/CVE-2026-6842 vdb-entry
- RHBZ#2460018 issue-tracking