Use of Externally-Controlled Format String Affecting nano package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Externally-Controlled Format String vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-NANO-18306084
  • published25 Jul 2026
  • disclosed22 Jul 2026
  • creditUnknown

Introduced: 22 Jul 2026

CVE-2026-6390  (opens in a new tab)
CWE-134  (opens in a new tab)

How to fix?

There is no fixed version for nano.

Overview

Affected versions of this package are vulnerable to Use of Externally-Controlled Format String via the error handling process. An attacker can cause information disclosure, denial of service, or potentially arbitrary memory writes by supplying a crafted filename containing printf format specifiers when multiple files are opened at startup and one triggers an ALERT-level error. This is only exploitable if the application is compiled with multi-buffer support and without the NANO_TINY option.

Workaround

This vulnerability can be mitigated by avoiding opening untrusted files, especially those with filenames containing printf format specifiers (e.g., %s, %p, %n).

CVSS Base Scores

version 4.0
version 3.1