nnn does not sanitize the filename variable. (CVE-2026-65612)
The nnn file manager does not sanitize the filename variable, allowing an attacker to craft filenames containing shell syntax that can lead to command injection when previewing files. This vulnerability was confirmed in version 5.2. The attacker can place a maliciously named file on a shared filesystem, removable media, or inside an extracted archive. When a victim opens such a file with the preview-tabbed feature, the injected shell commands execute with the privileges of the nnn process. No official patch or vulnerable version range has been provided by the maintainer.
AI Analysis
Technical Summary
CVE-2026-65612 describes a command injection vulnerability in the nnn file manager due to improper sanitization of the filename variable. An attacker can craft a filename containing a single quote followed by shell syntax and place it on a shared filesystem, removable media, or inside an archive. When the victim previews this file using the preview-tabbed feature, the filename is embedded unsafely into a shell command, resulting in execution of arbitrary commands with the privileges of the nnn process. The vulnerability was confirmed in version 5.2, but no further version range or patch information is available from the maintainer.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary shell commands with the privileges of the nnn process when a victim previews a maliciously named file. This can lead to unauthorized command execution and potential system compromise depending on the privileges of the nnn process. There is no indication of known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid opening or previewing files from untrusted sources using the preview-tabbed feature in nnn, especially files from shared filesystems, removable media, or extracted archives with suspicious filenames.
nnn does not sanitize the filename variable. (CVE-2026-65612)
Description
The nnn file manager does not sanitize the filename variable, allowing an attacker to craft filenames containing shell syntax that can lead to command injection when previewing files. This vulnerability was confirmed in version 5.2. The attacker can place a maliciously named file on a shared filesystem, removable media, or inside an extracted archive. When a victim opens such a file with the preview-tabbed feature, the injected shell commands execute with the privileges of the nnn process. No official patch or vulnerable version range has been provided by the maintainer.
CVSS v4.0
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-65612 describes a command injection vulnerability in the nnn file manager due to improper sanitization of the filename variable. An attacker can craft a filename containing a single quote followed by shell syntax and place it on a shared filesystem, removable media, or inside an archive. When the victim previews this file using the preview-tabbed feature, the filename is embedded unsafely into a shell command, resulting in execution of arbitrary commands with the privileges of the nnn process. The vulnerability was confirmed in version 5.2, but no further version range or patch information is available from the maintainer.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary shell commands with the privileges of the nnn process when a victim previews a maliciously named file. This can lead to unauthorized command execution and potential system compromise depending on the privileges of the nnn process. There is no indication of known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid opening or previewing files from untrusted sources using the preview-tabbed feature in nnn, especially files from shared filesystems, removable media, or extracted archives with suspicious filenames.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-mxcx-xvcg-f843
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-65612"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a85ee22acd9273b4969a4b3
Added to database: 08/19/2026, 17:55:46 UTC
Last enriched: 08/19/2026, 18:10:01 UTC
Last updated: 08/19/2026, 18:52:00 UTC
Views: 3
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.