CVE-2026-6390

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

Published Jul 23, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs 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
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/a:redhat:openshift:5
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Vendors & Products Redhat openshift Container Platform
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-134

    Use of Externally-Controlled Format String

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 5, 2026, 9:32 PM
Reserved
Apr 15, 2026, 7:42 PM
Status
Awaiting Analysis
Published
Jul 23, 2026, 5:16 AM
Modified
Nov 5, 2026, 10:18 PM
Severity
Moderate
Public date
Jul 22, 2026, 12:00 AM