CVE-2026-6842 Nano: nano: local attacker can inject malicious .desktop launcher due to insecure directory permissions
LowCVSS 2.5
EPSS 0.08%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
19 packages: 7 fixed, 12 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cbl-mariner nano(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| debian/nano(Debian 12) | = 7.2-1; = 7.2-1+deb12u1; = 7.2-2; = 8.0-1 +13 more | No fix listed | No fix yet |
| redhat enterprise linux | All versions | No fix listed | No fix yet |
| redhat openshift | All versions | No fix listed | No fix yet |
| redhat rhel els | All versions | No fix listed | No fix yet |
| redhat/nano(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/nano(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/nano(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/nano(Red Hat rhel_els 6) | All versions | No fix listed | No fix yet |
| redhat/nano(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| azure linux nano(Azure Linux 3.0) | < 6.4-3 | 6.4-3 | Fixed |
| debian/nano(Debian 13) | < 8.4-1+deb13u1; = 8.4-1 | 8.4-1+deb13u1 | Fixed |
| debian/nano(Debian 14) | < 9.0-1; = 8.4-1; = 8.5-1; = 8.6-1 +2 more | 9.0-1 | Fixed |
| nano | >= 2.9.1, < 9.0 | 9.0 | Fixed |
| ubuntu/nano(Ubuntu 22.04) | < 6.2-1ubuntu0.2 | 6.2-1ubuntu0.2 | Fixed |
| ubuntu/nano(Ubuntu 24.04) | < 7.2-2ubuntu0.2 | 7.2-2ubuntu0.2 | Fixed |
| ubuntu/nano(Ubuntu 26.04) | < 8.7.1-1ubuntu0.1 | 8.7.1-1ubuntu0.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux nano(Azure Linux:3.0) | < 6.4-3 | 6.4-3 |
| cbl-mariner nano(CBL-Mariner:2.0) | All versions | No fix listed |
| nano | >= 2.9.1, < 9.0 | 9.0 |
| redhat enterprise linux | All versions | No fix listed |
| redhat rhel els | All versions | No fix listed |
| redhat openshift | All versions | No fix listed |
| redhat/nano(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/nano(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/nano(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/nano(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/nano(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:4) | All versions | No fix listed |
| debian/nano(Debian:12) | All versions | No fix listed |
| debian/nano(Debian:12) | = 7.2-1 | No fix listed |
| debian/nano(Debian:12) | = 7.2-1+deb12u1 | No fix listed |
| debian/nano(Debian:12) | = 7.2-2 | No fix listed |
| debian/nano(Debian:12) | = 8.0-1 | No fix listed |
| debian/nano(Debian:12) | = 8.1-1 | No fix listed |
| debian/nano(Debian:12) | = 8.2-1 | No fix listed |
| debian/nano(Debian:12) | = 8.3-1 | No fix listed |
| debian/nano(Debian:12) | = 8.4-1 | No fix listed |
| debian/nano(Debian:12) | = 8.5-1 | No fix listed |
| debian/nano(Debian:12) | = 8.6-1 | No fix listed |
| debian/nano(Debian:12) | = 8.7-1 | No fix listed |
Show 16 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/nano(Debian:12) | = 8.7.1-1 | No fix listed |
| debian/nano(Debian:12) | = 9.0-1 | No fix listed |
| debian/nano(Debian:12) | = 9.1-1 | No fix listed |
| debian/nano(Debian:12) | = 9.2-1 | No fix listed |
| debian/nano(Debian:12) | = 9.3-1 | No fix listed |
| debian/nano(Debian:13) | < 8.4-1+deb13u1 | 8.4-1+deb13u1 |
| debian/nano(Debian:13) | = 8.4-1 | No fix listed |
| debian/nano(Debian:14) | < 9.0-1 | 9.0-1 |
| debian/nano(Debian:14) | = 8.4-1 | No fix listed |
| debian/nano(Debian:14) | = 8.5-1 | No fix listed |
| debian/nano(Debian:14) | = 8.6-1 | No fix listed |
| debian/nano(Debian:14) | = 8.7-1 | No fix listed |
| debian/nano(Debian:14) | = 8.7.1-1 | No fix listed |
| ubuntu/nano(Ubuntu:22.04) | < 6.2-1ubuntu0.2 | 6.2-1ubuntu0.2 |
| ubuntu/nano(Ubuntu:24.04) | < 7.2-2ubuntu0.2 | 7.2-2ubuntu0.2 |
| ubuntu/nano(Ubuntu:26.04) | < 8.7.1-1ubuntu0.1 | 8.7.1-1ubuntu0.1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2460018 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-6842 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8386-1 vendor-advisory