# CVE-2026-42307: Vim: OS Command Injection in netrw

- Priority: **Routine**
- Reason: Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-08 · Modified: 2026-05-13
- Aliases: ALPINE-CVE-2026-42307, UBUNTU-CVE-2026-42307, DEBIAN-CVE-2026-42307
- Record: https://cvemate.com/vulnerability/CVE-2026-42307 · JSON: https://cvemate.com/vulnerability/CVE-2026-42307/json

## Description

```text
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.
```

## Signals

- CVSS: 4.4 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.774%, percentile 57.096%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine vim (Alpine Linux): \< 9.2.0389-r0
- debian vim (Debian): All versions (No fix recorded) \| \< 2:9.1.1230-2+deb13u1 \| \< 2:9.2.0428-1
- ubuntu vim (Ubuntu): \< 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
- vim vim: \< 9.2.0383

## References

- <https://github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gx>
- <https://github.com/vim/vim/commit/405e2fb6d54d5653523809e2853d99d1c000a5fc>
- <https://github.com/vim/vim/releases/tag/v9.2.0383>
- <https://security.alpinelinux.org/vuln/CVE-2026-42307>
- <https://ubuntu.com/security/CVE-2026-42307>
- <https://www.cve.org/CVERecord?id=CVE-2026-42307>
- <https://ubuntu.com/security/notices/USN-8304-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-42307>

---

Data as of 2026-12-05T04:24:09.788Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
