Cloudanix VulnDB

CVE-2026-73077

None

CVSS

—

EPSS

0.1%

Published

Aug 11, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Craft or coerce a visual-mode selection containing shell metacharacters
  2. Press K to invoke the filetype-specific keywordprg command
  3. Unsanitized input reaches the underlying shell interpreter
  4. 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