OS Command Injection in Vim - #VU166524
Published: November 18, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary commands with the privileges of the user running Vim.
The vulnerability exists due to incomplete escaping of typographic single quotes in runtime/ftplugin/ps1.vim when passing keyword lookup arguments to PowerShell with filetype plugins enabled and PowerShell installed. A remote attacker can supply a PowerShell script containing x’;./hook.ps1;’ and trick the victim into opening it, selecting the crafted line in Visual mode, and pressing K to execute arbitrary commands.