Vim Stack Buffer Overflow Vulnerability in NetBeans Integration

Vulnerability

A stack buffer overflow vulnerability has been identified in Vim's NetBeans integration, prior to version 9.1.2148. The issue arises in the 'special_keys()' function within 'src/netbeans.c', where a 64-byte stack buffer is subjected to unchecked writes from a loop processing the 'specialKeys' command. This vulnerability allows a malicious NetBeans server to overflow the buffer, potentially leading to arbitrary code execution by overwriting the return address on the stack. The flaw was confirmed using AddressSanitizer.

Impact

Exploitation of this vulnerability causes an immediate crash of the Vim process. However, it also allows for arbitrary code execution by hijacking the control flow, according to the GitHub advisory.

Reproduction

To reproduce this vulnerability, Vim must be started with the NetBeans integration enabled, and then connected to a NetBeans server. The server can be manipulated to send a crafted 'specialKeys' command that includes a long token string, which will overflow the stack buffer due to the lack of bounds checking.

Remediation

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

Added: Feb 13, 2026, 9:04 PM
Updated: Feb 13, 2026, 11:58 PM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
10.0
exploitability
4.7
remediation
7.7
relevance
3.0
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.