« List of all CVEs

CVE-2026-42307

Vim: OS Command Injection in netrw

Published: 5/8/2026 Last updated: 5/13/2026 Reserved: 4/26/2026

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.

CNA assigner: GitHub_M (a0819718-46f1-4df5-94e2-005712e83aaa) Requested by: n/a

Metrics

Version Score Severity Vector String
3.1 4.4 Medium CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Opam packages affected (1)

conf-vim

Products affected (2)

Product Vendor Version
vim vim < 6.2.9200.25675
vim vim unspecified

References (6)