Command Injection Vulnerability in Vim's netrw Plugin
CVE-2026-42307
4.4MEDIUM
What is CVE-2026-42307?
An OS command injection vulnerability exists in the netrw standard plugin of Vim, allowing an attacker to execute arbitrary shell commands. This can occur when a user is tricked into opening a specially crafted URL using the sftp:// or file:// protocol handlers. The attack exploits insufficient input validation, leading to elevated privileges for the executed commands, which are run in the context of the Vim process. The issue has been patched in version 9.2.0383, so users are encouraged to update promptly to mitigate this risk.
Affected Version(s)
vim < 9.2.0383
