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.
Published: 2026-08-19
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

nnn fails to escape the user‑controlled path variable, allowing an attacker to create a directory whose name contains a single quote and shell syntax. When that directory name is used in nnn's batch copy or move workflow, the path is inserted directly into a generated shell command, causing the injected payload to run with the privileges of the nnn process. This flaw provides a command injection vector that can result in arbitrary code execution on the host system.

Affected Systems

The vulnerability affects the open‑source file manager nnn, specifically version 5.2 which has been confirmed to be vulnerable. No explicit vulnerable‑version range was documented by the maintainer, but any build that includes the unpatched path handling logic is at risk. The flaw can be triggered when the application operates on directories on shared filesystems, removable media, or inside a decompressed archive.

Risk and Exploitability

The CVSS score of 5.1 indicates a medium severity. The EPSS score is < 1%, indicating a very low exploitation probability. The vulnerability is not listed in the CISA KEV catalog, suggesting limited known exploitation. However, the attack requires the victim to use the affected workflow with a crafted directory; the consequences are local execution but could be leveraged for privilege escalation if the nnn process runs with elevated rights. The lack of an official fix can be inferred because the maintainer did not supply a vulnerable version range, meaning the risk remains until a patched release is deployed.

Generated by OpenCVE AI on August 20, 2026 at 17:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade nnn to a version that removes the unsanitized path handling once the upstream maintainer releases a fix.
  • Do not use nnn's batch copy or move workflows when a directory name may contain quotes or shell syntax; instead perform individual moves or copy commands.
  • Delete or rename any directories that contain unescaped quotes or shell syntax before they are processed by nnn.
  • As a temporary measure, disable the batch workflow entirely or restrict access to it until a patch is available.

Generated by OpenCVE AI on August 20, 2026 at 17:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 20 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Nnn
Nnn nnn
Vendors & Products Nnn
Nnn nnn

Wed, 19 Aug 2026 13:45:00 +0000

Type Values Removed Values Added
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.
Title Shell Command Injection in nnn
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: CERT-PL

Published:

Updated: 2026-08-20T15:57:11.810Z

Reserved: 2026-07-22T10:59:31.846Z

Link: CVE-2026-65611

cve-icon Vulnrichment

Updated: 2026-08-20T15:53:36.656Z

cve-icon NVD

Status : Deferred

Published: 2026-08-19T14:17:38.373

Modified: 2026-08-28T15:26:19.533

Link: CVE-2026-65611

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T17:30:03Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')