Skip to content
OpenAdvisories
Medium · 5.1 CVE-2026-65611 EUVD-2026-62400GHSA-p5rm-3fq7-7mvj

Shell Command Injection in nnn

Published Aug 19, 2026 · Updated Aug 20, 2026 · Assigned by CERT-PL

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.

Affected products

VendorProductAffectedFixed
nnn nnn — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nnn No fix yet —
Debian 13 nnn No fix yet —
Debian 12 nnn No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 nnn No fix yet —
Ubuntu 26.04 LTS nnn No fix yet —
Ubuntu 24.04 LTS nnn No fix yet —
Ubuntu 22.04 LTS nnn No fix yet —
Ubuntu 20.04 LTS nnn No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS nnn No fix yet —

References