← Back to search

CVE-2026-121548

7.8 HIGHpublic exploit available

Published 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

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.