RCE in Vim
CVE-2026-42307
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.4 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.012 (66.2th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 66th percentile — 66.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.008 · newest: 0.012 · change: +0.004
Affected products
- Vim — versions < 9.2.0383
Weakness classification (CWE)
References
- github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gx (Patch, Vendor Advisory)
- github.com/vim/vim/commit/405e2fb6d54d5653523809e2853d99d1c000a5fc (Patch)
- github.com/vim/vim/releases/tag/v9.2.0383 (Product)
Frequently asked questions
- What is CVE-2026-42307?
- CVE-2026-42307 is a medium-severity vulnerability in Vim, classified under OS Command Injection. CVSS score: 4.4/10. Published 2026-05-08.
- How severe is CVE-2026-42307?
- Medium severity. CVSS v3 base score is 4.4 out of 10.