CVE-2026-6390Nano: gnu nano: arbitrary memory writes, information disclosure, or denial of service…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | nano | Fixed | 8.7.1-1ubuntu0.1 | UBUNTU-CVE-2026-6390 |
| Ubuntu 25.10 | nano | Fixed | 8.4-1ubuntu0.1 | UBUNTU-CVE-2026-6390 |
| Ubuntu 24.04 | nano | Fixed | 7.2-2ubuntu0.2 | UBUNTU-CVE-2026-6390 |
| Ubuntu 22.04 | nano | Fixed | 6.2-1ubuntu0.2 | UBUNTU-CVE-2026-6390 |
| Debian 14 | nano | Fixed | 9.0-1 | DEBIAN-CVE-2026-6390 |
| Debian 13 | nano | Fix pending | DEBIAN-CVE-2026-6390 | |
| Debian 12 | nano | Fix pending | DEBIAN-CVE-2026-6390 | |
| Red Hat Enterprise Linux 10 | nano | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | nano | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | nano | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | nano | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | nano | Fix 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.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
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
- https://access.redhat.com/security/cve/CVE-2026-6390
- https://bugzilla.redhat.com/show_bug.cgi?id=2458767
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.