CVE-2026-39881 Vim Ex command injection in Vims NetBeans integration
A malicious NetBeans server can execute arbitrary Ex commands in Vim via unsanitized protocol messages, requiring the user to connect to the attacker's server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-39881?
CVE-2026-39881 is a medium-severity command injection vulnerability in Vim Vim, published on 8 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Vim is an open source, command line text editor. Prior to 9.2.0316, a command injection vulnerability in Vim's netbeans interface allows a malicious netbeans server to execute arbitrary Ex commands when Vim connects to it, via unsanitized strings in the defineAnnoType and specialKeys protocol messages. This vulnerability is fixed in 9.2.0316.
Weakness: CWE-94
Which versions are affected by CVE-2026-39881?
It affects 1 product.
Products include Vim Vim.
How do I fix CVE-2026-39881?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-39881 being exploited?
There is no known exploitation of CVE-2026-39881 in the wild and no public exploit code.
Other vulnerabilities in Vim Vim
Sources
Also known as ALPINE-CVE-2026-39881, AZL-82010, BELL-CVE-2026-39881, CLSA-2026-1777567716, CLSA-2026-1777568566, CLSA-2026-1777625424 and 18 more.