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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th 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-17430905
  • published23 Jun 2026
  • disclosed11 Jun 2026
  • creditUnknown

Introduced: 11 Jun 2026

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

How to fix?

Upgrade vim/vim to version 9.2.0496 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the s:stepmatch function in the cucumber filetype plugin when processing step-definition patterns from .rb files located under features/*/ or stories/*/ directories. An attacker can execute arbitrary Ruby code and potentially arbitrary shell commands by supplying a crafted pattern in a repository, which is then evaluated when a user invokes a step-jump mapping.

CVSS Base Scores

version 4.0
version 3.1