CVE-2026-73078: Vim netrw code injection via menu construction

CVE-2026-73078 · Severity: info · CVSS 6.1 · Published 2026-08-11

Vim is a widely-used text editor with a built-in file browser (netrw) that constructs menu entries from directory paths. When a user browses or bookmarks directories with specially crafted names, those names can be interpreted as executable commands, allowing an attacker to run arbitrary code with the user's privileges. This affects only the GUI version of Vim with the menu bar enabled.

Technologies: Vim. Vendors: Vim.

Quick answers

Is CVE-2026-73078 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-73078 being exploited in the wild.
How severe is CVE-2026-73078?
Informational severity, with a CVSS score of 6.1, published 11 August 2026.
Which products and versions are affected?
Vim prior to 9.2.0840.
Is there a fix for CVE-2026-73078?
A patch was published on 2026-08-11: Vim 9.2.0840 released with fix (commit 29c6fd0) Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-73078 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2026-73078?
Check whether you run Vim at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a command injection flaw (CWE-94, CWE-184) in netrw's menu construction code. Functions s:NetrwBookmarkMenu(), s:NetrwTgtMenu(), and related code build :menu commands by concatenating user-controlled directory paths without properly escaping the pipe character (|) which terminates Ex commands, and in some cases without escaping single quotes embedded in strings. An attacker can craft a directory path containing | or ' characters to inject arbitrary Ex commands and, via :!, arbitrary OS commands. Attack requires GUI Vim with menus enabled (defaults) and the victim browsing or bookmarking an attacker-controlled path. The issue is fixed in version 9.2.0840.

Affected products

  • Vim Vim prior to 9.2.0840

Timeline

  • 2026-07-23: disclosed: GHSA-rcr7-f3wr-22r2 published
  • 2026-08-11: patched: Vim 9.2.0840 released with fix (commit 29c6fd0)

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.