CVE-2026-42307: Vim: OS Command Injection in netrw
Vulnerability summary
CVE-2026-42307 is a medium (CVSS 4.4) vulnerability in vim. EPSS estimates a 0.77% chance of exploitation in the next 30 days, higher than 57% of scored vulnerabilities.
Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 4Timeline
- 08-05-2026PublishedVulnerability first disclosed.
- 13-05-2026Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · AlpineEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- NVDNIST4.4MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.77%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.77% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- vim< 9.2.0389-r0
Debian1 product
- vimAll versions (No fix recorded) | < 2:9.1.1230-2+deb13u1 | < 2:9.2.0428-1
Ubuntu1 product
- vim< 2:7.4.052-1ubuntu3.1+esm26 | < 2:7.4.1689-3ubuntu1.5+esm32 | < 2:8.0.1453-1ubuntu1.13+esm17 | < 2:8.1.2269-1ubuntu5.32+esm5 | < 2:8.2.3995-1ubuntu2.30 | < 2:9.1.0016-1ubuntu7.14 | < 2:9.1.0967-1ubuntu6.5 | < 2:9.1.2141-1ubuntu4.2
Vim1 product
- vim< 9.2.0383
4 vendors · 4 products
References
8 links- github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gxX Refsource CONFIRMREPORTPatchVendor Advisory