Description
Vim is an open source, command line text editor. Prior to 9.1.2148, a stack buffer overflow vulnerability exists in Vim's NetBeans integration when processing the specialKeys command, affecting Vim builds that enable and use the NetBeans feature. The Stack buffer overflow exists in special_keys() (in src/netbeans.c). The while (*tok) loop writes two bytes per iteration into a 64-byte stack buffer (keybuf) with no bounds check. A malicious NetBeans server can overflow keybuf with a single specialKeys command. The issue has been fixed as of Vim patch v9.1.2148.
References (4)
Core 4
Core References
Vendor Advisory x_refsource_confirm
https://github.com/vim/vim/security/advisories/GHSA-9w5c-hwr9-hc68
Patch x_refsource_misc
https://github.com/vim/vim/commit/c5f312aad8e4179e437f81ad39a860cd0ef11970
Release Notes x_refsource_misc
https://github.com/vim/vim/releases/tag/v9.1.2148
Scores
CVSS v3
5.4
EPSS
0.0005
EPSS Percentile
14.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-121
Status
published
Products (1)
vim/vim
< 9.1.2148
Published
Feb 13, 2026
Tracked Since
Feb 18, 2026