CVEfocus › CVE database › CVE-2026-6843

CVE-2026-6843Nano: nano: format string vulnerability leads to denial of service

CVSS 5.5 MediumEPSS 0.2% (higher than 2% of CVEs)Published 2026-04-22Updated 2026-11-24Assigner: redhat

A flaw was found in nano. A local user could exploit a format string vulnerability in the `statusline()` function. By creating a directory with a name containing `printf` specifiers, the application attempts to display this name, leading to a segmentation fault (SEGV). This results in a Denial of Service (DoS) for the `nano` application.

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

6Fixed
6Fix 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-6843
Ubuntu 25.10nanoFixed8.4-1ubuntu0.1UBUNTU-CVE-2026-6843
Ubuntu 24.04nanoFixed7.2-2ubuntu0.2UBUNTU-CVE-2026-6843
Ubuntu 22.04nanoFixed6.2-1ubuntu0.2UBUNTU-CVE-2026-6843
Debian 14nanoFixed9.0-1DEBIAN-CVE-2026-6843
Debian 13nanoFixed8.4-1+deb13u1DEBIAN-CVE-2026-6843
Debian 12nanoFix pendingDEBIAN-CVE-2026-6843
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: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

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.