CVE-2026-6842

published 22 Apr 2026 · updated 16 Nov 2026

Nano: nano: local attacker can inject malicious .desktop launcher due to insecure directory permissions

2.5LowCVSS 2.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 9.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatEnterprise Linux
Red HatOpenShift Container Platform
>=2.9.1 <9.09.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-6842 severity on Zeptric[![CVE-2026-6842](https://zeptric.io/badge/cve/CVE-2026-6842.svg)](https://zeptric.io/cve/CVE-2026-6842)