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

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-05-08T22:38:53.964Z
- Modified: 2026-07-24T21:10:00.143Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0383; before 9.2.0383

## References

- <https://github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gx> (patch, vendor-advisory)
- <https://github.com/vim/vim/commit/405e2fb6d54d5653523809e2853d99d1c000a5fc> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0383> (product)

## Sources

- CVE List: [CVE-2026-42307](https://www.cve.org/CVERecord?id=CVE-2026-42307), CVE Terms of Use, modified 2026-05-13
- NVD: [CVE-2026-42307](https://nvd.nist.gov/vuln/detail/CVE-2026-42307), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-42307 · Whole record: https://cve.day/CVE-2026-42307.json · Rebuilt by cve.day 2026-11-25T22:59:21.121Z
