CVE-2026-42307
Vim: OS Command Injection in netrw
Reported by github_m · Published May 8, 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.
EPSS 0.77% · 56.6th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-default-editor | Amazon Linux | 2:9.2.597-1.amzn2023.0.1 |
| vim-enhanced | Amazon Linux | 2:9.2.597-1.amzn2023.0.1 |
| vim-filesystem | Amazon Linux | 2:9.2.597-1.amzn2023.0.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.2.0383 |
| vim | vim | 0 |
Timeline
- May 8, 2026 CVE Published
- May 10, 2026 Security Advisory (3 in total, the first dated here)
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Aug 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-42307
vulnetix vdb fixes CVE-2026-42307
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42307/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gx x_refsource_CONFIRM
- https://github.com/vim/vim/commit/405e2fb6d54d5653523809e2853d99d1c000a5fc x_refsource_MISC
- https://github.com/vim/vim/releases/tag/v9.2.0383 x_refsource_MISC