参考 スコア待ち
Vim PowerShell keyword lookup allows command execution
Selecting a bad line in the Vim editor and looking it up can get your PC hacked.
対処法
Update to Vim 9.2.1346 or later.
要約
Vim's PowerShell filetype plugin fails to escape some typographic quote characters when K is pressed, so a crafted line in a PowerShell script can run commands. Vim users with PowerShell installed are affected.
該当する条件
- Vim with filetype plugins enabled
- PowerShell (pwsh or powershell.exe) installed
- crafted line selected in Visual mode and looked up with K
製品別のインシデント: Vim
Vim のほかの最近のインシデント