CVE-2026-6842 LOW

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

Vendor Red Hat
Product Red Hat Enterprise Linux 10
Weakness CWE-732
Published April 22, 2026
Last update April 22, 2026

CVSS base score

2.5/10
Attack vector Local
Attack complexity High
Privileges required Low
User interaction None
Confidentiality None
Integrity Low

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 22, 2026 CVE published
April 22, 2026 Record updated