CVE-2026-6842
published low CVSS 3.1 · 2.5Nano: nano: local attacker can inject malicious .desktop launcher due to insecure directory permissions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | nano2.9.1 to < 9.0 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat Enterprise Linux | 6, 7, 8, 9, 10 | nano | Affected | Not stated | redhat |
| Red Hat | — | openshift/ose-rhel-coreos-8Red Hat OpenShift Container Platform 4 | Affected | Not stated | redhat |
| Red Hat | — | openshift/ose-rhel-coreos-9Red Hat OpenShift Container Platform 4 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Leap-16.0 | nanoaarch64 | Advisory build | 9.1-bp160.1.1 | OPENSUSE-SU-2026:21166-1 |
| Ubuntu | bionic | nano | Advisory build | 2.9.3-2ubuntu0.1~esm2 | USN-8386-1 |
Show 23 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | nanoppc64le | Advisory build | 9.1-bp160.1.1 | OPENSUSE-SU-2026:21166-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | nanos390x | Advisory build | 9.1-bp160.1.1 | OPENSUSE-SU-2026:21166-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | nanox86_64 | Advisory build | 9.1-bp160.1.1 | OPENSUSE-SU-2026:21166-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nanoaarch64 | Advisory build | 9.0-2.1 | OPENSUSE-SU-2026:10851-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nanoppc64le | Advisory build | 9.0-2.1 | OPENSUSE-SU-2026:10851-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nanos390x | Advisory build | 9.0-2.1 | OPENSUSE-SU-2026:10851-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nanox86_64 | Advisory build | 9.0-2.1 | OPENSUSE-SU-2026:10851-1 |
| Ubuntu | focal | nano | Advisory build | 4.8-1ubuntu1.1+esm1 | USN-8386-1 |
| Ubuntu | jammy | nano | Advisory build | 6.2-1ubuntu0.2 | USN-8386-1 |
| Ubuntu | noble | nano | Advisory build | 7.2-2ubuntu0.2 | USN-8386-1 |
| Ubuntu | questing | nano | Advisory build | 8.4-1ubuntu0.1 | USN-8386-1 |
| Ubuntu | resolute | nano | Advisory build | 8.7.1-1ubuntu0.1 | USN-8386-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | nano-langnoarch | Advisory build | 9.1-bp160.1.1 | OPENSUSE-SU-2026:21166-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nano-langaarch64 | Advisory build | 9.0-2.1 | OPENSUSE-SU-2026:10851-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nano-langppc64le | Advisory build | 9.0-2.1 | OPENSUSE-SU-2026:10851-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nano-langs390x | Advisory build | 9.0-2.1 | OPENSUSE-SU-2026:10851-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nano-langx86_64 | Advisory build | 9.0-2.1 | OPENSUSE-SU-2026:10851-1 |
| Ubuntu | bionic | nano-tiny | Advisory build | 2.9.3-2ubuntu0.1~esm2 | USN-8386-1 |
| Ubuntu | focal | nano-tiny | Advisory build | 4.8-1ubuntu1.1+esm1 | USN-8386-1 |
| Ubuntu | jammy | nano-tiny | Advisory build | 6.2-1ubuntu0.2 | USN-8386-1 |
| Ubuntu | noble | nano-tiny | Advisory build | 7.2-2ubuntu0.2 | USN-8386-1 |
| Ubuntu | questing | nano-tiny | Advisory build | 8.4-1ubuntu0.1 | USN-8386-1 |
| Ubuntu | resolute | nano-tiny | Advisory build | 8.7.1-1ubuntu0.1 | USN-8386-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 2.5 / 10
- Severity
- low
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nano | 2.9.1 to < 9.0 (affected · semver)Default: unaffected | redhat · cna | |
| Red Hat | Red Hat Enterprise Linux 10 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 6 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | Default: affected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: affected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: affected | redhat · cna |
Weaknesses
1- CWE-732 Incorrect Permission Assignment for Critical Resource
References
2- https://access.redhat.com/security/cve/CVE-2026-6842
- RHBZ#2460018 https://bugzilla.redhat.com/show_bug.cgi?id=2460018
Provider assertions
2redhat · cna
Nano: nano: local attacker can inject malicious .desktop launcher due to insecure directory permissions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- db4e94f97b4ed3047b887245b087d4d31278088e480fd4c2c11d287024d7fe0a
- Ingested
- 25 Nov 2026, 16:42:41 UTC
- Source record
- Official CVE record