CVE-2026-6390
Medium · 6.8CVSS
6.8
EPSS
0.2%
Published
Jul 23, 2026
CISA due date
—
Cloudanix analysis
A local bug in a common text editor can let someone who already has access to your computer crash it or potentially run harmful code if you open several files at once and one has a tricky name.
- Exploitation
- Requires User Interaction
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Format string vulnerability in multi-buffer error message handling allows reinterpretation of a crafted filename containing printf specifiers, enabling stack information disclosure, denial of service via crash, or arbitrary memory writes.
Why it matters to the business
Attackers with local access can crash the editor or potentially execute code when users open multiple files at startup, risking system stability and data integrity in environments where the editor processes untrusted filenames.
How an attack unfolds
An attacker creates a specially crafted filename embedding printf format specifiers. When a victim invokes the editor with multiple files at startup and one triggers an ALERT-level error, the filename is passed unsafely to a formatting function, leading to memory corruption or disclosure.
How to fix it
Upgrade GNU nano to a version that properly sanitizes filenames before use in format strings. Until a fix is available, avoid opening multiple files from untrusted sources at startup and review local file-handling workflows.
How to confirm the fix worked
Confirm the editor version and test by attempting to open multiple files where one filename contains format specifiers; verify that error messages no longer interpret the specifiers and that no crash or unexpected memory behavior occurs.
Typical attack path
- Craft a malicious filename containing printf format specifiers
- Place the file in a location accessible to the target user
- Trick the user into invoking the editor with multiple files including the crafted one at startup
- Trigger an error condition that causes the filename to be used in an error message
- Achieve stack disclosure, crash, or memory write primitives
How to detect it
Review shell history and process logs for invocations of the editor with multiple file arguments; look for unusual filenames containing percent signs in directories accessed around the time of editor crashes or unexpected behavior.
What your security team should do
- Prioritize patching GNU nano once a fixed release is published
- Restrict local execution of the editor on systems handling untrusted input
- Monitor for updates via package managers and rebuild custom packages with hardening flags
The record
A flaw was found in GNU nano's multi-buffer error message handling. When a user opens multiple files at startup and one triggers an ALERT-level error, a specially crafted filename containing printf format specifiers can be reinterpreted. This format string vulnerability may allow an attacker to achieve stack information disclosure, cause a denial of service (crash), or potentially perform arbitrary memory writes.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-120059 For an updatable cursor over a table without OIDs that has an auto-increment int4 column… CWE-134
- CVE-2026-63201 Netopeer2 is a server for implementing network configuration management based on the… CWE-134
- CVE-2026-85842 Use of externally-controlled format string in Windows Image Acquisition allows an… CWE-134
- CVE-2026-83585 Use of externally-controlled format string in Windows NTFS allows an authorized attacker… CWE-134
- CVE-2026-73782 A format string vulnerability exists in the command line interface of AOS-CX that could… CWE-134
- CVE-2026-16821 IBM AIX 7.2, and 7.3 and IBM PowerVM VIOS 4.1 could allow a local attacker to gain… CWE-134
- CVE-2026-81574 In CodeMeter Runtime before versions 8.41a and 9.10, the logger does not sanitize input… CWE-134
- CVE-2026-63073 Issue summary: OpenSSL CMP response validation passed an unexpected response sender… CWE-134