Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVerify system umask is permissive
-
DeliveryCreate nano directory with 0777 permissions
-
ExploitInject malicious .desktop launcher file
-
ExecutionTargeted user logs in
-
PersistDesktop environment processes launcher
-
ImpactInformation disclosure or unintended action
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
|
| Exploitation Conditions | Exploitation requires three specific conditions: (1) nano creating ~/.local directory with world-writable (0777) permissions, which occurs only when the system has permissive umask settings (typically 0077 or higher, not the Linux default of 0022); (2) the attacker must have a local user account on the system (PR:L in CVSS vector) and be able to write to ~/.local directory of another user; (3) the targeted user must have an active desktop environment that processes .desktop launcher files in the .local/share/applications directory during session initialization. Server-only deployments, systems with standard umask (0022), and headless environments do not meet these conditions and are not vulnerable to practical exploitation. |
| Impact | This vulnerability presents low real-world risk despite affecting a widely-used text editor. The CVSS score of 2.5 accurately reflects the combination of local-only attack vector (AV:L), high attack complexity (AC:H indicating permissive umask is not default), and requirement for low privilege user account (PR:L). The integrity impact (I:L) is appropriately limited since an attacker can only inject .desktop files, not directly execute arbitrary code. The high attack complexity is the key limiting factor - this requires both a non-standard system umask configuration AND a specific .desktop processing context. EPSS exploitation probability data is not provided, but the AC:H designation suggests this is not a broadly exploitable issue across default Linux deployments. The attack requires local system access and relies on secondary processing of launcher files by desktop environments, making this primarily a concern for multi-user systems with non-standard umask settings (0077 or higher) where .desktop file processing is active. Single-user systems, headless servers, and systems with standard umask (0022) are largely unaffected. |
| Exploit ScenarioDerived | A local user on a permissive multi-user system (with umask 0077 or higher) with desktop environment active creates a crafted .desktop launcher file in another user's ~/.local/share/applications directory, exploiting the world-writable permissions. When the targeted user logs in and the desktop environment processes .desktop files (a standard initialization step), the malicious launcher could execute commands or access files with that user's privileges, resulting in information disclosure or unintended actions. Attack complexity is high because it requires both non-default umask AND active desktop environment processing. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 22, 2026
Nano text editor creates ~/.local directory with overly permissive 0777 permissions instead of 0700 in environments with permissive umask settings, allowing local authenticated users to inject malicious .desktop launcher files that could lead to information disclosure or unintended actions when processed. CVSS score 2.5 reflects local attack vector and low integrity impact, with active exploitation status unknown and no public exploit code identified at time of analysis.
RemediationAI
Apply a patch from Red Hat that explicitly sets directory permissions to 0700 when creating ~/.local directory, regardless of umask setting. Check Red Hat Security Advisory for RHEL 6/7/8/9/10 and OpenShift Container Platform 4 for patched nano package versions via https://access.redhat.com/security/cve/CVE-2026-6842. As a workaround on affected unpatched systems, system administrators can enforce restrictive default umask (0077 or 0027) via /etc/profile, /etc/bashrc, or PAM configuration, which will prevent world-writable directory creation. However, this is a system-wide change that may impact application functionality and requires careful testing. Alternative workaround for high-risk systems: disable .desktop file processing in the desktop environment configuration if not required, though this limits desktop functionality. The most reliable mitigation is applying the vendor-released patch once available.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability stems from a directory permission handling flaw (CWE-732: Incorrect Permission Assignment for Critical Resource) in nano's initialization of the ~/.local directory. When nano creates this directory, it fails to explicitly set restrictive permissions (0700, readable/writable/executable only by owner) and instead inherits the process umask, which in permissive configurations can result in world-writable (0777) permissions. This allows other local users on the system to write arbitrary files into the directory. The attack specifically targets .desktop launcher files, which are processed by desktop environments and could trigger unintended application execution or information disclosure through crafted launcher properties. Red Hat reports the issue affects nano on RHEL 6 through RHEL 10 and OpenShift Container Platform 4.
Know when Red Hat Enterprise Linux 10 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Primary rating from Vendor (redhat) · only source for this CVE.
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
More in Red Hat Enterprise Linux 10
View allHeap corruption via double-free in 389-ds-base's LDAP control parsing allows an unauthenticated remote attacker to crash
Remote code execution in Cockpit's web interface allows unauthenticated attackers to execute arbitrary commands on the h
Remote code execution in Samba's printing subsystem allows remote attackers to inject arbitrary shell commands via craft
Ghostscript can execute arbitrary shell commands with the privileges of its process when it renders a crafted PostScript
Use-after-free in librsvg during rendering of crafted SVG documents with nested XInclude directives and duplicate entity
A signed integer overflow vulnerability exists in the libtiff library's putcontig8bitYCbCr44tile function that leads to
The system CA trust store shipped in Red Hat's ca-certificates RPM packages includes eMudhra root authorities that signe
Authentication bypass in 389 Directory Server (shipped as Red Hat Directory Server 11-13 and within RHEL 6-10) lets remo
Remote code execution and privilege escalation in HPLIP (HP Linux Imaging and Printing) affects the hpcups print filter
Unauthenticated privilege escalation in FreeIPA (Red Hat Identity Management) allows a remote attacker to gain genuine a
A heap buffer overflow exists in libsoup's WebSocket permessage-deflate compression path: when a very large outbound mes
Remote code execution in libarchive on 32-bit systems allows unauthenticated attackers to execute arbitrary code via spe
EUVD-2026-24633
GHSA-ccfr-97mr-qq8g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB