CVE-2026-42307
Received Received - Intake
Command Injection in Vim Text Editor via Netrw Plugin

Publication date: 2026-05-08

Last updated on: 2026-05-08

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-08
Last Modified
2026-05-08
Generated
2026-05-09
AI Q&A
2026-05-09
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
vim vim to 9.2.0383 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in the netrw standard plugin bundled with Vim, an open source command line text editor. Prior to version 9.2.0383, an attacker can exploit this vulnerability by tricking a user into opening a specially crafted URL using protocols like sftp:// or file://. Doing so allows the attacker to execute arbitrary shell commands with the same privileges as the Vim process.


How can this vulnerability impact me? :

If exploited, this vulnerability can allow an attacker to run arbitrary shell commands on your system with the privileges of the Vim process. This could lead to unauthorized actions such as modifying files, stealing data, or further compromising the system depending on the permissions Vim has.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, you should update Vim to version 9.2.0383 or later, where the OS command injection issue in the netrw plugin has been patched.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart