Vulnerability · Published Apr 22, 2026 · Assigned by redhat

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

Medium 5.5

In plain English

A medium-severity security flaw in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 1% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.1%top 98.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12nanono fix listedDEBIAN-CVE-2026-6843
Debian:13nano8.4-1+deb13u1DEBIAN-CVE-2026-6843
Debian:14nano9.0-1DEBIAN-CVE-2026-6843
Ubuntu:22.04:LTSnano6.2-1ubuntu0.2USN-8386-1
Ubuntu:22.04:LTSnano6.2-1ubuntu0.2UBUNTU-CVE-2026-6843
Ubuntu:24.04:LTSnano7.2-2ubuntu0.2UBUNTU-CVE-2026-6843
Ubuntu:24.04:LTSnano7.2-2ubuntu0.2USN-8386-1
Ubuntu:25.10nano8.4-1ubuntu0.1UBUNTU-CVE-2026-6843
Ubuntu:25.10nano8.4-1ubuntu0.1USN-8386-1
Ubuntu:26.04:LTSnano8.7.1-1ubuntu0.1UBUNTU-CVE-2026-6843
Ubuntu:26.04:LTSnano8.7.1-1ubuntu0.1USN-8386-1

Affected products (as reported)

Weakness: CWE-134 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

References