CVE-2026-6842

Low

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.

SeverityLow
CVSS2.5
Exploit probability—
ProductNano
PublishedApr 22, 2026
First seenApr 22, 2026
Weakness typeCWE-732CWE-732

How to fix

Update
  • nano9.0 or later

Affected products

ProductAffected versionsFixed in
nano2.9.1 ≤ v < 9.09.0
Red Hat Red Hat Enterprise Linux 10No range specified—
Red Hat Red Hat Enterprise Linux 6No range specified—
Red Hat Red Hat Enterprise Linux 7No range specified—
Red Hat Red Hat Enterprise Linux 8No range specified—
Red Hat Red Hat Enterprise Linux 9No range specified—
Red Hat Red Hat OpenShift Container Platform 4No range specified—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.