CVE-2026-73077
NoneCVSS
—
EPSS
0.1%
Published
Aug 11, 2026
CISA due date
—
Cloudanix analysis
A popular command-line text editor can be tricked into running attacker-chosen commands on a user's computer when certain help features are used on specially crafted text.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Vim filetype plugins for shell, zsh, and PowerShell pass attacker-controlled visual-mode selections through keywordprg commands without neutralizing shell metacharacters, allowing arbitrary OS command execution under the privileges of the Vim user.
Why it matters to the business
An attacker with the ability to influence text selections in Vim can gain code execution on developer or administrator workstations, risking credential theft, lateral movement, or ransomware deployment; the issue remains unexploited in the wild with low and stable EPSS.
How an attack unfolds
An attacker supplies a visual-mode selection containing shell metacharacters, invokes the K mapping to trigger ShKeywordPrg/ZshKeywordPrg/GetHelp, which passes the unsanitized input to bash/zsh/PowerShell via fnameescape() that fails to block metacharacters, resulting in command execution.
How to fix it
Upgrade Vim to version 9.2.0839 or later; until then, avoid using the K mapping on untrusted buffers or disable the affected filetype plugins.
How to confirm the fix worked
Confirm Vim reports version 9.2.0839 or newer; test that visual-mode K no longer executes injected shell syntax in sh, zsh, and ps1 filetypes.
Typical attack path
- Craft or coerce a visual-mode selection containing shell metacharacters
- Press K to invoke the filetype-specific keywordprg command
- Unsanitized input reaches the underlying shell interpreter
- Arbitrary OS commands execute with the privileges of the Vim process
How to detect it
Inspect process trees for vim launching bash, zsh, or powershell with arguments derived from visual selections; review shell history and audit logs for unexpected command invocations immediately following vim activity.
- vim.*ShKeywordPrg
- vim.*ZshKeywordPrg
- vim.*GetHelp.*shell
What your security team should do
- Prioritize upgrade to Vim 9.2.0839 across all developer and operations endpoints
- Add process-creation monitoring for vim spawning shells with unexpected arguments
- Educate users to avoid the K command on untrusted content until patched
The record
Vim is an open source, command line text editor. Prior to 9.2.0839, the runtime/ftplugin/sh.vim, runtime/ftplugin/zsh.vim, and runtime/ftplugin/ps1.vim filetype plugins pass attacker-controlled Visual-mode selections from K through keywordprg commands without safely separating shell arguments. fnameescape() and PATH_ESC_CHARS do not neutralize shell metacharacters before ShKeywordPrg, ZshKeywordPrg, or GetHelp invokes bash, zsh, or PowerShell, allowing arbitrary operating-system commands to execute with the privileges of the user running Vim. This issue is fixed in version 9.2.0839.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-116651 Tanium addressed an unauthorized code execution vulnerability in Threat Response. CWE-78
- CVE-2026-116650 Tanium addressed an unauthorized code execution vulnerability in Threat Response. CWE-78
- CVE-2026-118865 An authenticated OS command injection vulnerability exists in the Offline Download… CWE-78
- CVE-2026-121621 A command injection vulnerability was found in Argo CD Image Updater, where a proxy URL… CWE-78
- CVE-2026-54161 Network UPS Tools is a collection of programs which provide a common interface for… CWE-78
- CVE-2026-121548 Jarun nnn through 5.3 contains an OS command injection vulnerability in plugins/togglex… CWE-78
- CVE-2026-121429 AzuraCast through 0.23.8 contains a command injection vulnerability that allows station… CWE-78
- CVE-2026-119742 Nagios XI before 2026R2 contains an OS command injection vulnerability in the MIB upload… CWE-78