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.
Published: 2026-08-11
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Thu, 13 Aug 2026 12:15:00 +0000

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


Thu, 13 Aug 2026 05:15:00 +0000

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

Tue, 11 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 11 Aug 2026 16:15:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-11T16:57:05.912Z

Reserved: 2026-08-10T19:37:41.444Z

Link: CVE-2026-73078

cve-icon Vulnrichment

Updated: 2026-08-11T16:56:53.044Z

cve-icon NVD

Status : Received

Published: 2026-08-11T16:17:39.573

Modified: 2026-08-11T17:19:15.600

Link: CVE-2026-73078

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-11T15:41:08Z

Links: CVE-2026-73078 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T14:15:05Z

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')