Vim Command Injection Vulnerability in NetBeans Interface

Vulnerability

A command injection vulnerability has been identified in Vim versions prior to 9.2.0316. This issue arises in Vim's NetBeans interface, where unsanitized strings in the 'defineAnnoType' and 'specialKeys' protocol messages allow a malicious NetBeans server to execute arbitrary Ex commands on the connected Vim instance. The vulnerability is triggered when Vim is started with the '-nb' flag, directing it to a server controlled by the attacker.

Impact

Exploitation of this vulnerability allows for arbitrary command execution within Vim, which could lead to unauthorized file access or modification. Additionally, executed commands could potentially be used for further code execution, depending on the injected commands.

Reproduction

To reproduce this vulnerability, start Vim with the '-nb' flag, pointing to a malicious NetBeans server. Once connected, the server can send a 'defineAnnoType' message with injected commands, or a 'specialKeys' message that exploits the same injection flaw.

Remediation

Users can upgrade to Vim version 9.2.0316 or later to address this vulnerability.

Added: Apr 8, 2026, 10:16 PM
Updated: Apr 8, 2026, 10:16 PM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
7.5
exploitability
5.3
remediation
7.7
relevance
5.5
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.