{"id":"CVE-2026-121548","kind":"vulnerability","aliases":["CVE-2026-121548"],"related":[],"title":"nnn file manager: crafted filenames run commands in togglex plugin","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.","summary":"The nnn terminal file manager's togglex plugin passes filenames into a shell script without escaping them. A file whose name contains a double quote and shell syntax can make the plugin run commands as the user who invoked it.","severity":"high","cvss":8.4,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["linux","macos","nnn","package","terminal"],"not_affected_if":["nnn-newer-than-5.3","plugin-not-installed"],"how_to_check":"- Check the installed version with `nnn -V`; versions through `5.3` are listed as affected.\n- Check whether the togglex plugin is installed under the nnn plugins directory.","fix":"- Move to a version newer than `5.3`, per the linked patch (version number not stated in the sources).","status":"open","published_at":"2026-11-03T16:17:26+00:00","first_seen_at":"2026-11-03T16:21:43+00:00","triaged_at":"2026-11-03T16:23:45+00:00","updated_at":"2026-11-03T16:23:45+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-03T16:23:45Z","model":"claude-haiku-5-5","output":{"fix":"- Move to a version newer than `5.3`, per the linked patch (version number not stated in the sources).","reach":"local","title":"nnn file manager: crafted filenames run commands in togglex plugin","impact":"high","summary":"The nnn terminal file manager's togglex plugin passes filenames into a shell script without escaping them. A file whose name contains a double quote and shell syntax can make the plugin run commands as the user who invoked it.","audience":"developers","category":"package","nicknames":[],"who_cares":["nnn","terminal","linux","macos"],"confidence":0.7,"fix_status":"available","needs_auth":"no","worst_case":"Commands run as the user who invoked togglex.","analyst_note":"Confirm the exact fixed nnn version and the patch commit at the linked GitHub patch; sources do not state the fixed version.","how_to_check":"- Check the installed version with `nnn -V`; versions through `5.3` are listed as affected.\n- Check whether the togglex plugin is installed under the nnn plugins directory.","plain_action":"","needs_analyst":true,"not_affected_if":["plugin-not-installed","nnn-newer-than-5.3"],"who_is_affected":"Anyone running nnn 5.3 or earlier with the togglex plugin enabled, where files with crafted names may be present in a directory the user opens. Users who do not use the togglex plugin are not described as exposed by the sources. Attackers need to place a file in a directory the user later processes with the plugin.","user_interaction":"yes","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000691,"input_tokens":4168,"output_tokens":549,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-121548':13A,16A '-2026':12A,15A '5.3':64C 'allow':74C 'attack':75C,82C 'c':102C 'command':7A,55B,68C,78C,105C 'contain':43B,65C,88C 'craft':4A,80C 'cve':11A,14A 'doubl':45B,90C 'escap':37B 'execut':77C 'file':2A,25B,40B,85C 'filenam':5A,31B,81C 'inject':69C 'invok':60B,109C 'jarun':61C 'linux':17B 'maco':18B 'make':51B 'manag':3A,26B 'name':42B,87C 'nnn':1A,19B,23B,62C 'os':67C 'packag':20B 'pass':30B 'place':84C 'plugin':10A,29B,53B 'plugins/togglex':72C 'quot':46B,91C 'run':6A,54B,104C 'script':35B,103C 'sh':101C 'shell':34B,48B,93C 'splice':98C 'syntax':49B,94C 'termin':21B,24B 'togglex':9A,28B,110C 'user':58B,108C 'via':79C 'vulner':70C 'whose':41B,86C 'without':36B 'xarg':96C","nicknames":[],"mitigations":[],"who_affected":"Anyone running nnn 5.3 or earlier with the togglex plugin enabled, where files with crafted names may be present in a directory the user opens. Users who do not use the togglex plugin are not described as exposed by the sources. Attackers need to place a file in a directory the user later processes with the plugin.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["high","linux","macos","nnn","package","terminal"],"first_public_at":"2026-11-03T16:17:26+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-121548","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121548","severity":null,"published_at":"2026-11-03T16:17:26+00:00","modified_at":"2026-11-03T16:17:26+00:00","first_seen_at":"2026-11-03T16:21:43+00:00","fetched_at":"2026-11-03T16:21:43+00:00","note":null}],"documents":[{"id":58832,"url":"https://github.com/jarun/nnn/commit/04715921aece0257fef7a8558c0783493d98efff","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":58833,"url":"https://www.vulncheck.com/advisories/nnn-through-5.3-os-command-injection-via-togglex-plugin","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}