Description
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.
Published: 2026-07-23
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw lies in GNU nano’s multi‑buffer error message handling. When a user starts nano with multiple files, an ALERT‑level error from one file can trigger a format string vulnerability. A specially crafted filename containing printf format specifiers (e.g., %s, %p, %n) is reinterpreted by the error handler, allowing an attacker to read stack data, crash the process, or potentially write arbitrary data to memory. No remote code execution is explicitly stated, but the possibility of arbitrary memory writes indicates a severe confidentiality, integrity, or availability risk.

Affected Systems

Affected platforms include Red Hat Enterprise Linux 10, 6, 7, 8, 9 and Red Hat OpenShift Container Platform 4. The precise affected nano versions are not specified; any currently deployed instance of GNU nano on these systems could be vulnerable unless a fixed release is applied.

Risk and Exploitability

The CVSS score of 6.8 labels the vulnerability as moderate. The EPSS score of less than 1 % indicates a very low, but non‑zero, likelihood of exploitation. The flaw is not listed in the CISA KEV catalog. Attack requires a specially crafted file name and an alert‑level error during multi‑buffer startup, implying a local‑or‑non‑privileged attacker who can influence the file list or provide an untrusted file. Although the risk is moderate, the potential for memory corruption warrants careful attention.

Generated by OpenCVE AI on August 3, 2026 at 22:59 UTC.

Remediation

Vendor 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.


OpenCVE Recommended Actions

  • Do not open untrusted files or files containing format specifiers (e.g., %s, %p, %n) in GNU nano.
  • Check Red Hat’s advisories and update to a version of GNU nano that includes the fix, if available.
  • If staying on an affected nano version, disable multi‑buffer startup or avoid opening multiple files containing untrusted names to mitigate the alert‑level error scenario.

Generated by OpenCVE AI on August 3, 2026 at 22:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 02 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Vendors & Products Redhat openshift Container Platform

Thu, 23 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 23 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 23 Jul 2026 05:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Nano: gnu nano: arbitrary memory writes, information disclosure, or denial of service via format string vulnerability in error handling.
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Weaknesses CWE-134
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H'}


Subscriptions

Redhat Enterprise Linux Openshift Openshift Container Platform
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-23T13:43:29.133Z

Reserved: 2026-04-15T19:42:07.154Z

Link: CVE-2026-6390

cve-icon Vulnrichment

Updated: 2026-07-23T13:43:23.087Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-23T05:16:38.360

Modified: 2026-07-23T15:33:09.233

Link: CVE-2026-6390

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-22T00:00:00Z

Links: CVE-2026-6390 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T23:00:04Z

Weaknesses
  • CWE-134

    Use of Externally-Controlled Format String