nnn does not sanitize the path variable. (CVE-2026-65611)
The nnn file manager does not sanitize the path variable, allowing an attacker to craft directory names containing shell syntax that can be executed during batch copy or move operations. This vulnerability was confirmed in version 5.2. The flaw enables command injection with the privileges of the nnn process when a user enters a malicious directory and uses batch workflows.
AI Analysis
Technical Summary
nnn suffers from a command injection vulnerability (CWE-78) due to improper sanitization of the path variable. An attacker can create a directory with a name containing a single quote followed by shell commands on a shared filesystem, removable media, or extracted archive. When a victim navigates into this directory and performs batch copy or move operations, the crafted directory name is embedded into a shell command, leading to execution of the injected payload with the privileges of the nnn process. The vulnerability was confirmed in version 5.2, but no specific affected version range or patch information is provided by the maintainer.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary shell commands with the privileges of the nnn process, potentially leading to unauthorized actions on the victim's system. The vulnerability requires user interaction (UI:A) and local access to the filesystem where the malicious directory is created. There is no evidence of known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid entering directories with suspicious names containing shell syntax when using batch copy or move workflows in nnn. Exercise caution when accessing directories from shared filesystems, removable media, or extracted archives.
nnn does not sanitize the path variable. (CVE-2026-65611)
Description
The nnn file manager does not sanitize the path variable, allowing an attacker to craft directory names containing shell syntax that can be executed during batch copy or move operations. This vulnerability was confirmed in version 5.2. The flaw enables command injection with the privileges of the nnn process when a user enters a malicious directory and uses batch workflows.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
nnn suffers from a command injection vulnerability (CWE-78) due to improper sanitization of the path variable. An attacker can create a directory with a name containing a single quote followed by shell commands on a shared filesystem, removable media, or extracted archive. When a victim navigates into this directory and performs batch copy or move operations, the crafted directory name is embedded into a shell command, leading to execution of the injected payload with the privileges of the nnn process. The vulnerability was confirmed in version 5.2, but no specific affected version range or patch information is provided by the maintainer.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary shell commands with the privileges of the nnn process, potentially leading to unauthorized actions on the victim's system. The vulnerability requires user interaction (UI:A) and local access to the filesystem where the malicious directory is created. There is no evidence of known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid entering directories with suspicious names containing shell syntax when using batch copy or move workflows in nnn. Exercise caution when accessing directories from shared filesystems, removable media, or extracted archives.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-p5rm-3fq7-7mvj
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-65611"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a85ee22acd9273b4969a4b1
Added to database: 08/19/2026, 17:55:46 UTC
Last enriched: 08/19/2026, 18:10:08 UTC
Last updated: 08/19/2026, 18:52:02 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.