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.

Severity (CVSS 3.1)2.5Low
Exploit odds (30 days)<0.1%top 99.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12nanono fix listedDEBIAN-CVE-2026-6842
Debian:13nano8.4-1+deb13u1DEBIAN-CVE-2026-6842
Debian:14nano9.0-1DEBIAN-CVE-2026-6842
Ubuntu:22.04:LTSnano6.2-1ubuntu0.2UBUNTU-CVE-2026-6842
Ubuntu:22.04:LTSnano6.2-1ubuntu0.2USN-8386-1
Ubuntu:24.04:LTSnano7.2-2ubuntu0.2USN-8386-1
Ubuntu:24.04:LTSnano7.2-2ubuntu0.2UBUNTU-CVE-2026-6842
Ubuntu:25.10nano8.4-1ubuntu0.1USN-8386-1
Ubuntu:25.10nano8.4-1ubuntu0.1UBUNTU-CVE-2026-6842
Ubuntu:26.04:LTSnano8.7.1-1ubuntu0.1USN-8386-1
Ubuntu:26.04:LTSnano8.7.1-1ubuntu0.1UBUNTU-CVE-2026-6842

Affected products (as reported)

Weakness: CWE-732 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

References