CVE-2026-121548
7.8 HIGHpublic exploit availablePublished 2026-11-03 · Updated 2026-11-03
AI risk analysis
- Summary
- A command injection flaw exists in the togglex plugin of nnn file manager (through v5.3) due to unsafe shell command construction using xargs -I with user-controlled filenames containing quotes and shell metacharacters. This allows local attackers to execute arbitrary commands as the invoking user when they trigger the plugin via a crafted filename.
- Exploitability
- Exploitation requires the attacker to place a maliciously named file in a directory accessible to the victim and诱导 them to invoke the togglex plugin (e.g., by selecting the file), making it moderately difficult due to user interaction requirements and local access constraints.
- Blast radius
- Successful exploitation grants full read/write/execute capabilities to the attacker as the compromised user, potentially enabling lateral movement, data theft, or persistence within the user's environment.
- Detection
- Defenders should monitor shell process command lines (e.g., via auditd logs showing 'sh -c' invoked with suspicious arguments containing unescaped quotes and pipe/semicolon-separated commands) or anomalous child processes spawned from nnn, especially when triggered by files with non-alphanumeric or shell-metacharacter-rich names.
- Prioritized remediation
- Upgrade to nnn version 5.4 or later, which patches the togglex plugin to sanitize filenames before shell invocation.
command-injectionlocal-exploitplugin-vulnerabilityshell-escape-failure
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
Jarun nnn through 5.3 contains an OS command injection vulnerability in plugins/togglex that allows attackers to execute commands via crafted filenames. Attackers can place files whose names contain a double quote and shell syntax, which xargs -I splices into an sh -c script, running commands as the user invoking togglex.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-78
Public exploit & PoC references
All references
- https://github.com/jarun/nnn
- https://github.com/jarun/nnn/blob/v5.3/plugins/togglex#L15
- https://github.com/jarun/nnn/commit/04715921aece0257fef7a8558c0783493d98efff
- https://github.com/jarun/nnn/issues/2188
- https://www.vulncheck.com/advisories/nnn-through-5.3-os-command-injection-via-togglex-plugin
- https://github.com/jarun/nnn/issues/2188
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-112263PoC
- HIGHCVE-2026-113732PoC
- HIGHCVE-2026-117559PoC
- HIGHCVE-2026-119737
- HIGHCVE-2026-119586PoC
- HIGHCVE-2026-69718
- HIGHCVE-2026-95168PoC
- CRITICALCVE-2020-37282PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.