CVE-2026-42307: vim OS Command Injection
Vulnerability summary
CVE-2026-42307 is a medium (CVSS 4.4) OS Command Injection vulnerability in vim. EPSS estimates a 1.17% chance of exploitation in the next 30 days, higher than 66.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 5 · 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
1.17%
Chance of exploitation in the next 30 days
Percentile
67%
Versus all other CVEs
30-day change
+0.40 pp
From 0.77% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine1 product
- vim< 9.2.0389-r0
Debian1 product
- vimAll versions (No fix recorded) | < 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