RCE in Vim

CVE-2026-39881

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.

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.006 (46.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.0 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:N.

Affected products

  • Vim — versions < 9.2.0316

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-39881?
CVE-2026-39881 is a medium-severity vulnerability in Vim, classified under Code Injection. CVSS score: 5.0/10. Published 2026-04-08.
How severe is CVE-2026-39881?
Medium severity. CVSS v3 base score is 5.0 out of 10.