CVE-2026-73078

Vim: Arbitrary Code Execution via Netrw Menu Construction

Published Aug 11, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
Vim is an open source, command line text editor. Prior to 9.2.0840, runtime/plugin/netrwPlugin.vim loads netrw and runtime/pack/dist/opt/netrw/autoload/netrw.vim constructs Bookmarks, History, and Targets menu entries by interpolating attacker-controlled directory paths into executed :menu commands. s:NetrwBookmarkMenu(), s:NetrwTgtMenu(), g:netrw_menu_escape, EX_TRLBAR, and netrw#MakeTgt() fail to neutralize the | command separator or single quotes at five construction sites, allowing a crafted path browsed or bookmarked in GUI Vim to execute arbitrary Ex and operating-system commands. This issue is fixed in version 9.2.0840.

Analysis

AI-generated

Technical impact

The vulnerability is in Vim’s netrw plugin, which builds menu entries by interpolating directory paths into :menu commands when a user browses or bookmarks a directory in GUI Vim. At five construction sites the plugin fails to escape command separators or single quotes, allowing an attacker-controlled path to inject arbitrary Ex and operating‑system commands. Exploitation grants the attacker the ability to run any command with the privileges of the Vim process, resulting in full arbitrary code execution on the local machine.

Affected Systems

Vim versions earlier than 9.2.0840 on all platforms that load the netrw plugin are affected. The issue exists for both command‑line and graphic Vim where users can browse or bookmark directories. Upgrading to Vim 9.2.0840 or newer resolves the flaw; older releases must be patched or the netrw plugin disabled to mitigate exposure.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity vulnerability, while the EPSS score of <1% suggests a low current exploitation probability. The flaw is not listed in the CISA KEV catalog. The attack vector requires a local user who can browse or bookmark a malicious directory in GUI Vim; no remote network exploitation is possible. Nevertheless, the impact is significant, as a crafted path can lead to arbitrary command execution with the Vim user’s rights.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vim to version 9.2.0840 or newer.
  • If an upgrade cannot be performed immediately, disable the netrw plugin by adding to your vimrc: let g:loaded_netrwPlugin = 1 (or let g:loaded_netrw = 1) to prevent the plugin from loading and stop menu construction.
  • Avoid creating bookmarks or browsing directories when the path can be influenced by an untrusted source.

Generated by OpenCVE AI on August 13, 2026 at 14:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-78
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Vim
Vim vim
Vendors & Products Vim
Vim vim
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Vim is an open source, command line text editor. Prior to 9.2.0840, runtime/plugin/netrwPlugin.vim loads netrw and runtime/pack/dist/opt/netrw/autoload/netrw.vim constructs Bookmarks, History, and Targets menu entries by interpolating attacker-controlled directory paths into executed :menu commands. s:NetrwBookmarkMenu(), s:NetrwTgtMenu(), g:netrw_menu_escape, EX_TRLBAR, and netrw#MakeTgt() fail to neutralize the | command separator or single quotes at five construction sites, allowing a crafted path browsed or bookmarked in GUI Vim to execute arbitrary Ex and operating-system commands. This issue is fixed in version 9.2.0840.
Title Vim: Arbitrary Code Execution via Netrw Menu Construction
Weaknesses CWE-184
CWE-77
References
Metrics cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 11, 2026, 4:57 PM
Reserved
Aug 10, 2026, 7:37 PM
Status
Analyzed
Published
Aug 11, 2026, 4:17 PM
Modified
Oct 6, 2026, 7:25 PM
Severity
Important
Public date
Aug 11, 2026, 3:41 PM