cve.bz

CVE-2026-47167 vim vim: Code Injection

5.1 mediumEPSS 0.1%Fix available

Medium (5.1) in vim vim. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

5.1 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

5.3 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 3rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-06-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code (Eval Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-47167 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-47167?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-47167?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-47167 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vim:vimbefore 9.2.0496

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vimno fix listedDEBIAN-CVE-2026-47167
Debian13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-47167 DSA-6600-1
Debian14vim2:9.2.0524-1DEBIAN-CVE-2026-47167
Ubuntu22.04:LTSvim2:8.2.3995-1ubuntu2.32UBUNTU-CVE-2026-47167
Ubuntu24.04:LTSvim2:9.1.0016-1ubuntu7.16UBUNTU-CVE-2026-47167
Ubuntu25.10vim2:9.1.0967-1ubuntu6.7UBUNTU-CVE-2026-47167
Ubuntu26.04:LTSvim2:9.1.2141-1ubuntu4.5UBUNTU-CVE-2026-47167
UbuntuPro:14.04:LTSvim2:7.4.052-1ubuntu3.1+esm29UBUNTU-CVE-2026-47167
UbuntuPro:16.04:LTSvim2:7.4.1689-3ubuntu1.5+esm35UBUNTU-CVE-2026-47167
UbuntuPro:18.04:LTSvim2:8.0.1453-1ubuntu1.13+esm20UBUNTU-CVE-2026-47167
UbuntuPro:20.04:LTSvim2:8.1.2269-1ubuntu5.32+esm8UBUNTU-CVE-2026-47167
Red Hatenterprise_linux:8::appstreamvim-common2:8.0.1763-27.el8_10RHSA-2026:38510
Red Hatenterprise_linux:8::baseosvim2:8.0.1763-27.el8_10RHSA-2026:38510
Red Hatenterprise_linux:9::appstreamvim-common2:8.2.2637-26.el9_8.10RHSA-2026:38511
Red Hatenterprise_linux:9::baseosvim2:8.2.2637-26.el9_8.10RHSA-2026:38511
Red Hatenterprise_linux:10.2vim, vim-common2:9.1.083-9.el10_2.7RHSA-2026:38509
Red Hatenterprise_linux_eus:10.0vim, vim-X11, vim-common and 1 more2:9.1.083-5.el10_0.4RHSA-2026:55431
Red Hathummingbird:1vim, xxd, vim-X11 and 6 more2:9.2.967-1.1.hum1RHSA-2026:57614
Red Hatrhel_e4s:9.2::appstreamvim-X11, vim-common, vim-enhanced and 6 more2:8.2.2637-20.el9_2.3RHSA-2026:72466
Red Hatrhel_e4s:9.2::baseosvim, vim-minimal, vim-debuginfo and 6 more2:8.2.2637-20.el9_2.3RHSA-2026:72466
Red Hatrhel_e4s:9.4::appstreamvim-X11, vim-common, vim-enhanced and 6 more2:8.2.2637-20.el9_4.4RHSA-2026:72465
Red Hatrhel_e4s:9.4::baseosvim, vim-minimal, vim-debuginfo and 6 more2:8.2.2637-20.el9_4.4RHSA-2026:72465
Red Hatrhel_els:6vim, vim-X11, vim-common and 2 more2:7.4.629-5.el6_10.4RHSA-2026:69128
3 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8vim-X11, vim-common, vim-minimal and 2 more2:8.0.1763-27.el8_10ALSA-2026:38510
AlmaLinux9vim-X11, vim-common, vim-minimal and 2 more2:8.2.2637-26.el9_8.10ALSA-2026:38511
AlmaLinux10vim-data, vim-filesystem2:9.1.083-9.el10_2.7ALSA-2026:38509
Rocky Linux8vim2:8.0.1763-27.el8_10RLSA-2026:38510
Rocky Linux9vim2:8.2.2637-26.el9_8.10RLSA-2026:38511
Rocky Linux10vim2:9.1.083-9.el10_2.7RLSA-2026:38509
Azure Linux3vim9.2.0620-1AZL-89775

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

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.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10vim-2:9.1.083-9.el10_2.7Fixed 2026-07-13RHSA-2026:38509
Red Hat Enterprise Linux 10.0 Extended Update Supportvim-2:9.1.083-5.el10_0.4Fixed 2026-08-17RHSA-2026:55431
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONvim-2:7.4.629-5.el6_10.4Fixed 2026-09-21RHSA-2026:69128
Red Hat Enterprise Linux 7 Extended Lifecycle Supportvim-2:7.4.629-8.el7_9.2Fixed 2026-09-17RHSA-2026:68711
Red Hat Enterprise Linux 8vim-2:8.0.1763-27.el8_10Fixed 2026-07-13RHSA-2026:38510
Red Hat Enterprise Linux 9vim-2:8.2.2637-26.el9_8.10Fixed 2026-07-13RHSA-2026:38511
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsvim-2:8.2.2637-20.el9_2.3Fixed 2026-09-28RHSA-2026:72466
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsvim-2:8.2.2637-20.el9_4.4Fixed 2026-09-28RHSA-2026:72465
Red Hat Enterprise Linux 9.6 Extended Update Supportvim-2:8.2.2637-22.el9_6.4Fixed 2026-09-23RHSA-2026:70818
Red Hat OpenShift Container Platform 4.22openshift/ose-rhel-coreos-9:4.22.9.8.202608130832-0Fixed 2026-08-18RHSA-2026:54769
Red Hat AI Inference Server 3.2rhaiis/model-opt-cuda-rhel9:1790621714Fixed 2026-09-30RHSA-2026:73859
Red Hat AI Inference Server 3.2rhaiis/vllm-cuda-rhel9:1790621718Fixed 2026-09-30RHSA-2026:73929
Red Hat AI Inference Server 3.2rhaiis/vllm-rocm-rhel9:1790621713Fixed 2026-09-30RHSA-2026:73930
Red Hat AI Inference Server 3.5rhaii/vllm-rocm-rhel9:1791425869Fixed 2026-10-13RHSA-2026:82059
Red Hat AI Inference Server 3.5rhaii/vllm-gaudi-rhel9:1791427182Fixed 2026-10-13RHSA-2026:82061
Red Hat AI Inference Server 3.5rhaii/model-opt-cuda-rhel9:1791803821Fixed 2026-10-13RHSA-2026:82066
Red Hat AI Inference Server 3.5rhaii/vllm-cuda-rhel9:1791473631Fixed 2026-10-13RHSA-2026:82368
Red Hat AI Inference Server 3.5rhaii/vllm-spyre-rhel9:1791818357Fixed 2026-10-13RHSA-2026:82371
Red Hat AI Inference Server 3.5rhaii/vllm-cpu-rhel9:1791473614Fixed 2026-10-13RHSA-2026:82415
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
51 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-47167.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON