Arbitrary Code Injection Affecting vim/vim package, versions [,9.2.0316)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.62% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-VIMVIM-16078398
  • published16 Apr 2026
  • disclosed8 Apr 2026
  • creditWang1rrr

Introduced: 8 Apr 2026

CVE-2026-39881  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade vim/vim to version 9.2.0316 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via unsanitized strings in the defineAnnoType and specialKeys protocol messages. An attacker can execute arbitrary Ex commands by controlling a malicious NetBeans server that Vim connects to.

CVSS Base Scores

version 4.0
version 3.1