Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCreate malicious directory with format specifiers
-
DeliveryPlace in location accessible to target user
-
ExploitTarget opens nano file browser
-
ExecutionNano displays directory name in status line
-
PersistFormat string parser reads memory
-
ImpactSegmentation fault crashes nano
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Format string safety
|
| Exploitation Conditions | Exploitation requires a local attacker to create a directory with a name containing printf format specifiers in a location where the target user will browse using nano's file browser or where nano will display the directory name in the status line. The attacker must have write access to a directory that the target user will access (e.g., /tmp, /home shared directories, or project folders). The vulnerability is triggered when the target user opens nano and the directory name is displayed-typically through nano's file browser or when nano shows the current working directory in the status line. This is not remotely exploitable and requires the target user to interact with nano, limiting it to scenarios where both local access and user action are feasible. |
| Impact | CVSS 5.5 with AV:L (local only), AC:L (low complexity), PR:N (no privileges), UI:R (requires user interaction), and impact limited to availability (A:H) indicates moderate real-world risk. The requirement for user interaction-the victim must open a directory with a crafted name in nano-significantly lowers practical exploitability compared to the raw CVSS score. However, the attack surface is potentially broad: any local user can create directories with malicious names in shared directories (e.g., /tmp), and when another user browses to that location in nano, they trigger the crash. This makes it viable for low-privilege users to disrupt workflows for other users. The absence of KEV status, POC confirmation, or EPSS data suggests this is not currently being exploited at scale, but the simplicity of the attack vector (creating a directory) means exploitation is trivial once the vulnerability is known. The local-only attack vector prevents this from being a critical remote issue, but defenders should prioritize patching on multi-user systems or shared development environments. |
| Exploit ScenarioDerived | A local user creates a directory named something like 'test_%x_%x_%x' in /tmp. When another user opens nano and browses the file system or uses the file browser feature, nano attempts to display the directory name in the status line. The format string parser interprets '%x' as read instructions, causing a segmentation fault and crashing nano for the victim user. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 22, 2026
Format string vulnerability in nano's statusline() function allows local users to trigger a segmentation fault via directory names containing printf specifiers, causing denial of service. Exploitation requires user interaction (opening a directory with the crafted name) on systems where nano is available to local users. No public exploit code identified at time of analysis.
RemediationAI
Apply the security patch released by Red Hat. Users should update nano to the patched version available from their Red Hat Enterprise Linux repository using standard package management tools (e.g., 'yum update nano' on RHEL 6/7/8/9/10 or 'dnf update nano' on RHEL 8+). For systems unable to patch immediately, restrict file browser access in nano or avoid opening directories in untrusted locations (e.g., shared /tmp directories where unprivileged users can create files). However, this workaround is impractical for many workflows and should not be considered a long-term solution. Red Hat's advisory is available at https://access.redhat.com/security/cve/CVE-2026-6843 and the associated Bugzilla report at https://bugzilla.redhat.com/show_bug.cgi?id=2460017.
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 exists in nano's statusline() function, which handles the display of file and directory information in the editor's status line. The root cause is a CWE-134 (Use of Externally-Controlled Format String) flaw where user-controlled input-specifically a directory name-is passed directly to a format string context without sanitization. When a directory name contains printf format specifiers (such as %x, %n, or %s), the function interprets these as format directives rather than literal characters. This causes the format string parser to read from or write to unintended memory locations, leading to a crash. The vulnerability affects nano across multiple Red Hat Enterprise Linux versions (6, 7, 8, 9, and 10) and Red Hat 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:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in nano. A local user could exploit a format string vulnerability in the statusline() function. By creating a directory with a name containing printf specifiers, the application attempts to display this name, leading to a segmentation fault (SEGV). This results in a Denial of Service (DoS) for the nano application.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-24708
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB