Vulnerability · Published Apr 8, 2026 · Assigned by GitHub_M

CVE-2026-39881Vim Ex command injection in Vims NetBeans integration

Medium 5.0

In plain English

A medium-severity code injection in vim from vim. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.0Medium
Exploit odds (30 days)0.6%top 48.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23vim9.2.0321-r0ALPINE-CVE-2026-39881
Alpine:v3.24vim9.2.0321-r0ALPINE-CVE-2026-39881
Debian:12vimno fix listedDEBIAN-CVE-2026-39881
Debian:13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-39881
Debian:14vim2:9.2.0338-1DEBIAN-CVE-2026-39881
Ubuntu:22.04:LTSvim2:8.2.3995-1ubuntu2.28UBUNTU-CVE-2026-39881
Ubuntu:24.04:LTSvim2:9.1.0016-1ubuntu7.12UBUNTU-CVE-2026-39881
Ubuntu:25.10vim2:9.1.0967-1ubuntu6.3UBUNTU-CVE-2026-39881
Ubuntu:26.04:LTSvim2:9.1.2141-1ubuntu4.1UBUNTU-CVE-2026-39881

Affected products (as reported)

VendorProductVersions
vim vim < 9.2.0316

Weakness: CWE-94 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:N

References