CVE-2026-6842
Publication date 22 April 2026
Last updated 6 June 2026
Ubuntu priority
Cvss 3 Severity Score
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| nano | 26.04 LTS resolute |
Fixed 8.7.1-1ubuntu0.1
|
| 25.10 questing |
Fixed 8.4-1ubuntu0.1
|
|
| 24.04 LTS noble |
Fixed 7.2-2ubuntu0.2
|
|
| 22.04 LTS jammy |
Fixed 6.2-1ubuntu0.2
|
|
| 20.04 LTS focal |
Fixed 4.8-1ubuntu1.1+esm1
|
|
| 18.04 LTS bionic |
Fixed 2.9.3-2ubuntu0.1~esm2
|
|
| 16.04 LTS xenial |
Not affected
|
|
| 14.04 LTS trusty |
Not affected
|
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu Pro 30-day free trialNotes
kkernick
The umask for Ubuntu has been 0002 since at least trusty, which means nano would not create a world-writable ~/.local by default.
Severity score breakdown
| Parameter | Value |
|---|---|
| Base score |
|
| Attack vector | Local |
| Attack complexity | High |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity impact | Low |
| Availability impact | None |
| Vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
References
Related Ubuntu Security Notices (USN)
- USN-8386-1
- Nano vulnerabilities
- 4 June 2026