cve.bz

CVE-2026-6390 Nano: gnu nano: arbitrary memory writes, information disclosure, or denial of service via format string vulnerability in error handling.

6.8 mediumEPSS 0.2%

Medium (6.8) in red hat. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 2nd percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-07-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-134 Use of Externally-Controlled Format String
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-6390 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-6390?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-6390?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-6390 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13nanono fix listedDEBIAN-CVE-2026-6390
Debian14nano9.0-1DEBIAN-CVE-2026-6390
Ubuntu22.04:LTSnano6.2-1ubuntu0.2UBUNTU-CVE-2026-6390
Ubuntu24.04:LTSnano7.2-2ubuntu0.2UBUNTU-CVE-2026-6390
Ubuntu25.10nano8.4-1ubuntu0.1UBUNTU-CVE-2026-6390
Ubuntu26.04:LTSnano8.7.1-1ubuntu0.1UBUNTU-CVE-2026-6390
openSUSETumbleweednano9.3-1.1openSUSE-SU-2026:12247-1
Azure Linux3nanono fix listedAZL-93270
Alpaquita23, 25, streamnanono fix listedBELL-CVE-2026-6390

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A format string vulnerability in GNU nano's multi-buffer error handling can lead to information disclosure, denial of service, or potentially arbitrary memory writes. This flaw occurs when a user opens multiple files at startup, and one triggers an ALERT-level error, combined with a filename containing printf format specifiers. The vulnerability affects nano versions 5.7 through 8.7 when compiled with multi-buffer support and without the NANO_TINY option.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10nanoFix deferred
Red Hat Enterprise Linux 6nanoFix deferred
Red Hat Enterprise Linux 7nanoFix deferred
Red Hat Enterprise Linux 8nanoFix deferred
Red Hat Enterprise Linux 9nanoFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-6390.

Attack patterns (CAPEC)

  • CAPEC-67 String Format Overflow in syslog() Likelihood: High · Severity: Very High
  • CAPEC-135 Format String Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON