Cloudanix VulnDB

CVE-2026-6390

Medium · 6.8

CVSS

6.8

EPSS

0.2%

Published

Jul 23, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Craft a malicious filename containing printf format specifiers
  2. Place the file in a location accessible to the target user
  3. Trick the user into invoking the editor with multiple files including the crafted one at startup
  4. Trigger an error condition that causes the filename to be used in an error message
  5. 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