CVE-2026-65611 Shell Command Injection in nnn

Medium 5.1 Published Updated

Attackers can execute arbitrary shell commands by crafting directory names with shell syntax, which are unsanitized during batch copy or move operations in nnn.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-65611?

CVE-2026-65611 is a medium-severity command injection vulnerability in nnn, published on 19 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

nnn does not sanitize the path variable. An attacker can create a directory on a shared filesystem, removable media, or inside an extracted archive whose name contains a single quote followed by shell syntax. If the victim enters that directory in nnn and uses the batch copy or move workflow, the crafted directory name is embedded into the generated shell command and the injected payload executes with the privileges of the nnn process.

Maintainer of this project was notified about this vulnerability. It might has been addressed, but the maintainer did not provide a vulnerable version range. Only version 5.2 was tested and confirmed as vulnerable.

Weakness: CWE-78

Which versions are affected by CVE-2026-65611?

How do I fix CVE-2026-65611?

No fix has been published for CVE-2026-65611 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-65611 being exploited?

There is no known exploitation of CVE-2026-65611 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-65611, GHSA-p5rm-3fq7-7mvj, UBUNTU-CVE-2026-65611.

Is CVE-2026-65611 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free