Command Injection Affecting vim/vim package, versions [,9.2.0383)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.77% (51st 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-16599138
  • published9 May 2026
  • disclosed9 May 2026
  • creditMegaManSec

Introduced: 9 May 2026

CVE-2026-42307  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade vim/vim to version 9.2.0383 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection in the netrw plugin when processing crafted URLs such as those using the sftp:// or file:// protocol handlers. An attacker can execute arbitrary shell commands with the privileges of the running process by convincing a user to open a specially crafted URL.

CVSS Base Scores

version 4.0
version 3.1