What’s Vulnerable › Vulnerabilities

CVE-2026-42307: Vim: OS Command Injection in netrw

Description

Vim is an open source, command line text editor. Prior to version 9.2.0383, an OS command injection vulnerability exists in the netrw standard plugin bundled with Vim. By inducing a user to open a crafted URL (e.g., using the sftp:// or file:// protocol handlers), an attacker can execute arbitrary shell commands with the privileges of the Vim process. This issue has been patched in version 9.2.0383.

Affected products

How to fix

Upgrade to a fixed version: vim/vim 9.2.0383. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-42307 or the next vulnerability affects your stack