
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-26269 is a stack-based buffer overflow vulnerability in Vim's NetBeans integration, specifically in the special_keys() function within src/netbeans.c. It affects all Vim versions prior to 9.1.2148 that are built with and use the NetBeans feature. The vulnerability was disclosed on February 13, 2026, by researcher Haein Lee (@haaeein), with a fix released the same day as Vim patch v9.1.2148. The NVD assigns a CVSS v3.1 score of 7.5 (High), while the GitHub Security Advisory rates it 5.4 (Moderate) (GitHub Advisory, Openwall).
The root cause is CWE-121 (Stack-based Buffer Overflow) in the special_keys() function in src/netbeans.c. Vim allocates a fixed 64-byte stack buffer (keybuf, defined as KEYBUFLEN = 64) and writes two bytes per iteration in a while (*tok) loop without any bounds check. A malicious or compromised NetBeans server can send a crafted specialKeys command with a token string of 33 or more qualifying characters (e.g., 'A', 'M', 'C', 'S'), causing 66+ bytes to be written into the 64-byte buffer, overflowing into adjacent stack data including cmdbuf[256] and the return address. The fix in patch v9.1.2148 adds a bounds check: while (*tok && i + 2 < KEYBUFLEN) (GitHub Commit, GitHub Advisory). The NetBeans protocol communicates over unencrypted TCP, making man-in-the-middle (MITM) injection of the malicious payload feasible (Openwall).
Successful exploitation can result in denial of service through immediate crashing of the Vim process, or potentially arbitrary code execution by overwriting the return address on the stack and hijacking control flow. The overflow corrupts adjacent stack data including cmdbuf[256] and the return address, affecting confidentiality, integrity, and availability of the Vim process. The attack is limited in scope to the Vim process itself (scope unchanged), and exploitation requires user interaction — specifically, the user must connect Vim to a malicious or MITM-intercepted NetBeans server (GitHub Advisory, Openwall).
specialKeys command with a token string containing 33 or more characters from the set {A, M, C, S} followed by a separator (e.g., 0:specialKeys!0 "AAAA...A-X" with 40 'A' characters), which causes 80 bytes to be written into the 64-byte keybuf.vim -u NONE -nb:attacker-host:9999:bunny).specialKeys command, the special_keys() function processes the token without bounds checking, overflowing keybuf into adjacent stack memory.specialKeys command strings (>64 characters in the token field).-nb flag connecting to an external host.special_keys in src/netbeans.c around line 2313; core dump files generated by the Vim process; system logs showing segmentation faults from the Vim binary.core, core.vim) in the working directory of the Vim process.Update Vim to version 9.1.2148 or later, which contains the fix limiting writes to KEYBUFLEN bytes in special_keys(). Downstream distributions including Ubuntu (USN-8101-1), SUSE/openSUSE, Fedora, Amazon Linux 2023 (ALAS2023-2026-1584), and Oracle Solaris have released updated packages. As a workaround, disable NetBeans integration if it is not actively used (avoid starting Vim with the -nb option), or restrict network access to ensure Vim can only connect to trusted, known-good NetBeans servers (GitHub Commit, Red Hat Bugzilla).
The vulnerability was disclosed responsibly by Haein Lee (@haaeein) and acknowledged by Vim maintainer Christian Brabandt, who published the fix and coordinated disclosure via the oss-security mailing list on February 13, 2026 (Openwall). The GitHub Security Advisory rates the severity as Moderate (5.4), noting the legacy nature of the NetBeans interface and the requirement for user interaction as mitigating factors (GitHub Advisory). Multiple Linux distributions and security vendors (Tenable, Qualys) have issued advisories and detection plugins, indicating broad awareness in the security community.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."