---
id: CVE-2026-6843
title: A flaw was found in nano
summary: >-
  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…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cwe:
  - CWE-134
vendor: gnu
product: nano
affected:
  - nano = 8.7
  - openshift_container_platform = 4.0
  - enterprise_linux = 6.0
  - enterprise_linux = 7.0
  - enterprise_linux = 8.0
  - enterprise_linux = 9.0
  - enterprise_linux = 10.0
published: '2026-04-22'
updated: '2026-08-31'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6843'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-6843'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2460017'
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.00108
epssPercentile: 0.01333
ingestedAt: '2026-08-31T16:10:59.885Z'
---

## Overview

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

- `nano = 8.7`
- `openshift_container_platform = 4.0`
- `enterprise_linux = 6.0`
- `enterprise_linux = 7.0`
- `enterprise_linux = 8.0`
- `enterprise_linux = 9.0`
- `enterprise_linux = 10.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
