CVEfocus › CVE database › CVE-2026-6390

CVE-2026-6390Nano: gnu nano: arbitrary memory writes, information disclosure, or denial of service…

CVSS 6.8 MediumEPSS 0.2% (higher than 2% of CVEs)Published 2026-07-23Updated 2026-11-24Assigner: redhat

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.

CWE-134

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
7Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04nanoFixed8.7.1-1ubuntu0.1UBUNTU-CVE-2026-6390
Ubuntu 25.10nanoFixed8.4-1ubuntu0.1UBUNTU-CVE-2026-6390
Ubuntu 24.04nanoFixed7.2-2ubuntu0.2UBUNTU-CVE-2026-6390
Ubuntu 22.04nanoFixed6.2-1ubuntu0.2UBUNTU-CVE-2026-6390
Debian 14nanoFixed9.0-1DEBIAN-CVE-2026-6390
Debian 13nanoFix pendingDEBIAN-CVE-2026-6390
Debian 12nanoFix pendingDEBIAN-CVE-2026-6390
Red Hat Enterprise Linux 10nanoFix pending
Fix deferred
Red Hat Enterprise Linux 9nanoFix pending
Fix deferred
Red Hat Enterprise Linux 8nanoFix pending
Fix deferred
Red Hat Enterprise Linux 7nanoFix pending
Fix deferred
Red Hat Enterprise Linux 6nanoFix pending
Fix deferred

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Users should avoid opening untrusted files with GNU nano, especially those with filenames containing printf format specifiers (e.g., %s, %p, %n). This operational control helps prevent the exploitation of the format string vulnerability, which relies on specific filename content and error conditions during multi-buffer usage.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.