Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-47167

Опубликовано: 11 июн. 2026
Источник: redhat
CVSS3: 7.3

Описание

Vim is an open source, command line text editor. Prior to version 9.2.0496, a code injection vulnerability exists in s:stepmatch() in the cucumber filetype plugin (runtime/ftplugin/cucumber.vim) on Vim builds with +ruby support. Step-definition patterns read from .rb files under the repository's features// or stories// directories are embedded into a Ruby Kernel.eval argument without sufficient escaping, allowing a crafted pattern in an attacker-controlled repository to execute arbitrary Ruby (and through it arbitrary shell commands) when the user invokes a step-jump mapping ([d, ]d). This issue has been patched in version 9.2.0496.

A flaw was found in Vim, a command-line text editor. This vulnerability, identified as a code injection, affects the cucumber filetype plugin when Vim is configured with Ruby support. An attacker could exploit this by creating a malicious repository containing specially crafted step-definition patterns. If a user opens this repository and triggers a specific function, the crafted patterns are unsafely processed, potentially allowing the attacker to execute unauthorized commands on the user's system.

Отчет

This Important vulnerability in Vim's cucumber filetype plugin, when configured with Ruby support, allows for arbitrary code execution. An attacker could exploit this by convincing a user to open a specially crafted repository and trigger a specific step-jump mapping, leading to local command execution. This risk is contingent on user interaction with untrusted content and the presence of the Ruby-enabled cucumber plugin.

Меры по смягчению последствий

To mitigate this issue, users should exercise caution when opening untrusted files or repositories with Vim, particularly those that might trigger the cucumber filetype plugin. Avoiding interaction with untrusted content can prevent the execution of malicious step-definition patterns.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6vimAffected
Red Hat Enterprise Linux 7vimAffected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat Enterprise Linux 10vimFixedRHSA-2026:3850913.07.2026
Red Hat Enterprise Linux 10.0 Extended Update SupportvimFixedRHSA-2026:5543117.08.2026
Red Hat Enterprise Linux 8vimFixedRHSA-2026:3851013.07.2026
Red Hat Enterprise Linux 8vimFixedRHSA-2026:3851013.07.2026
Red Hat Enterprise Linux 9vimFixedRHSA-2026:3851113.07.2026
Red Hat Enterprise Linux 9vimFixedRHSA-2026:3851113.07.2026
Red Hat OpenShift Container Platform 4.22rhcos-4.22.9.8.202608130832FixedRHSA-2026:5476918.08.2026

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-94
https://bugzilla.redhat.com/show_bug.cgi?id=2487996vim: Vim: Arbitrary code execution via crafted step-definition patterns

7.3 High

CVSS3

Связанные уязвимости

CVSS3: 5.3
ubuntu
3 месяца назад

Vim is an open source, command line text editor. Prior to version 9.2.0496, a code injection vulnerability exists in s:stepmatch() in the cucumber filetype plugin (runtime/ftplugin/cucumber.vim) on Vim builds with +ruby support. Step-definition patterns read from .rb files under the repository's features/*/ or stories/*/ directories are embedded into a Ruby Kernel.eval argument without sufficient escaping, allowing a crafted pattern in an attacker-controlled repository to execute arbitrary Ruby (and through it arbitrary shell commands) when the user invokes a step-jump mapping ([d, ]d). This issue has been patched in version 9.2.0496.

CVSS3: 5.3
nvd
3 месяца назад

Vim is an open source, command line text editor. Prior to version 9.2.0496, a code injection vulnerability exists in s:stepmatch() in the cucumber filetype plugin (runtime/ftplugin/cucumber.vim) on Vim builds with +ruby support. Step-definition patterns read from .rb files under the repository's features/*/ or stories/*/ directories are embedded into a Ruby Kernel.eval argument without sufficient escaping, allowing a crafted pattern in an attacker-controlled repository to execute arbitrary Ruby (and through it arbitrary shell commands) when the user invokes a step-jump mapping ([d, ]d). This issue has been patched in version 9.2.0496.

msrc
3 месяца назад

Vim: Vimscript Code Injection in cucumber filetype plugin via crafted step-definition regex

CVSS3: 5.3
debian
3 месяца назад

Vim is an open source, command line text editor. Prior to version 9.2. ...

CVSS3: 6.3
redos
2 месяца назад

Уязвимость vim

7.3 High

CVSS3