---
id: CVE-2026-6842
title: A flaw was found in nano
summary: >-
  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 `.…
severity: low
cvss: 2.5
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-732
published: '2026-04-22'
updated: '2026-08-26'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6842'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-6842'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2460018'
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.0011
epssPercentile: 0.01139
ingestedAt: '2026-08-26T17:47:12.290Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
