# CVE-2026-6842: nano: A flaw was found in nano

CVE-2026-6842 is fixed in 6 products on 1 platform, first by nano 2.9.3-2ubuntu0.1~esm2, released April 22, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-6842
- Priority: Routine
- CVSS: 2.5 (low)
- EPSS: 0.0009
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 22, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | default-editor Fedora 43 | 8.5-3.fc43 | [FEDORA-2026-D0A0F1C3D2](https://patchblox.com/security/data/fix/linux/fedora-2026-d0a0f1c3d2.md) | Apr 30, 2026 |
| Linux | nano Debian 13.5 (trixie) | 8.4-1+deb13u1 | [DEBIAN-CVE-2026-6842](https://patchblox.com/security/data/fix/linux/debian-cve-2026-6842.md) | May 15, 2026 |
| Linux | nano Debian 14 | 9.0-1 | [DEBIAN-CVE-2026-6842](https://patchblox.com/security/data/fix/linux/debian-cve-2026-6842.md) | May 15, 2026 |
| Linux | nano Fedora 43 | 8.5-3.fc43 | [FEDORA-2026-D0A0F1C3D2](https://patchblox.com/security/data/fix/linux/fedora-2026-d0a0f1c3d2.md) | Apr 30, 2026 |
| Linux | nano Ubuntu 18.04.6 LTS (bionic) | 2.9.3-2ubuntu0.1~esm2 | [nano 2.9.3-2ubuntu0.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-nano-2.9.3-2ubuntu0.1-esm2.md) | Apr 22, 2026 |
| Linux | nano Ubuntu 20.04 LTS (focal) | 4.8-1ubuntu1.1+esm1 | [nano 4.8-1ubuntu1.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-nano-4.8-1ubuntu1.1-esm1.md) | Apr 22, 2026 |
| Linux | nano Ubuntu 22.04.1 LTS (jammy) | 6.2-1ubuntu0.2 | [nano 6.2-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-nano-6.2-1ubuntu0.2.md) | Jun 24, 2026 |
| Linux | nano Ubuntu 24.04.5 LTS (noble) | 7.2-2ubuntu0.2 | [nano 7.2-2ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-nano-7.2-2ubuntu0.2.md) | Jun 24, 2026 |
| Linux | nano Ubuntu 25.10 (questing) | 8.4-1ubuntu0.1 | [nano 8.4-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-nano-8.4-1ubuntu0.1.md) | Jun 24, 2026 |
| Linux | nano Ubuntu 26.04.1 LTS (resolute) | 8.7.1-1ubuntu0.1 | [nano 8.7.1-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-nano-8.7.1-1ubuntu0.1.md) | Jul 22, 2026 |
| Linux | nano opensuse-leap 16.0 | 9.1-bp160.1.1 | [OPENSUSE-SU-2026:21166-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21166-1.md) | Jun 29, 2026 |
| Linux | nano-debuginfo Fedora 43 | 8.5-3.fc43 | [FEDORA-2026-D0A0F1C3D2](https://patchblox.com/security/data/fix/linux/fedora-2026-d0a0f1c3d2.md) | Apr 30, 2026 |
| Linux | nano-debugsource Fedora 43 | 8.5-3.fc43 | [FEDORA-2026-D0A0F1C3D2](https://patchblox.com/security/data/fix/linux/fedora-2026-d0a0f1c3d2.md) | Apr 30, 2026 |
| Linux | nano-default-editor Fedora 43 | 8.5-3.fc43 | [FEDORA-2026-D0A0F1C3D2](https://patchblox.com/security/data/fix/linux/fedora-2026-d0a0f1c3d2.md) | Apr 30, 2026 |
| Linux | nano-tiny Ubuntu 18.04.6 LTS (bionic) | 2.9.3-2ubuntu0.1~esm2 | [nano-tiny 2.9.3-2ubuntu0.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-nano-tiny-2.9.3-2ubuntu0.1-esm2.md) | Apr 22, 2026 |
| Linux | nano-tiny Ubuntu 20.04 LTS (focal) | 4.8-1ubuntu1.1+esm1 | [nano-tiny 4.8-1ubuntu1.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-nano-tiny-4.8-1ubuntu1.1-esm1.md) | Apr 22, 2026 |
| Linux | nano-tiny Ubuntu 22.04.1 LTS (jammy) | 6.2-1ubuntu0.2 | [nano-tiny 6.2-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-nano-tiny-6.2-1ubuntu0.2.md) | Jun 24, 2026 |
| Linux | nano-tiny Ubuntu 24.04.5 LTS (noble) | 7.2-2ubuntu0.2 | [nano-tiny 7.2-2ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-nano-tiny-7.2-2ubuntu0.2.md) | Jun 24, 2026 |
| Linux | nano-tiny Ubuntu 25.10 (questing) | 8.4-1ubuntu0.1 | [nano-tiny 8.4-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-nano-tiny-8.4-1ubuntu0.1.md) | Jun 24, 2026 |
| Linux | nano-tiny Ubuntu 26.04.1 LTS (resolute) | 8.7.1-1ubuntu0.1 | [nano-tiny 8.7.1-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-nano-tiny-8.7.1-1ubuntu0.1.md) | Jul 22, 2026 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
