Vulnerability · Published Apr 22, 2026 · Assigned by redhat
CVE-2026-6842Nano: nano: local attacker can inject malicious .desktop launcher due to insecure directory permissions
Low 2.5
In plain English
A low-severity incorrect permission assignment in nano. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 0% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | nano | no fix listed | DEBIAN-CVE-2026-6842 |
| Debian:13 | nano | 8.4-1+deb13u1 | DEBIAN-CVE-2026-6842 |
| Debian:14 | nano | 9.0-1 | DEBIAN-CVE-2026-6842 |
| Ubuntu:22.04:LTS | nano | 6.2-1ubuntu0.2 | UBUNTU-CVE-2026-6842 |
| Ubuntu:22.04:LTS | nano | 6.2-1ubuntu0.2 | USN-8386-1 |
| Ubuntu:24.04:LTS | nano | 7.2-2ubuntu0.2 | USN-8386-1 |
| Ubuntu:24.04:LTS | nano | 7.2-2ubuntu0.2 | UBUNTU-CVE-2026-6842 |
| Ubuntu:25.10 | nano | 8.4-1ubuntu0.1 | USN-8386-1 |
| Ubuntu:25.10 | nano | 8.4-1ubuntu0.1 | UBUNTU-CVE-2026-6842 |
| Ubuntu:26.04:LTS | nano | 8.7.1-1ubuntu0.1 | USN-8386-1 |
| Ubuntu:26.04:LTS | nano | 8.7.1-1ubuntu0.1 | UBUNTU-CVE-2026-6842 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| nano | 2.9.1 – before 9.0 | |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
Weakness: CWE-732 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
References
- https://access.redhat.com/security/cve/CVE-2026-6842 vdb-entry, x_refsource_REDHAT
- RHBZ#2460018 issue-tracking, x_refsource_REDHAT