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

Published Jun 11, 2026
·
Updated

Last updated 19 June 2026

Other sources

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.

— MITRE

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

— Microsoft

Affected Software

6 affected componentsFixes available
vim Vim<9.2.0496
vim Vim<9.2.0496
debian/vim<=2:8.2.2434-3+deb11u1, <=2:8.2.2434-3+deb11u3, <=2:9.0.1378-2+deb12u2, <=2:9.1.1230-2
2:9.2.0524-1
Microsoft azl3 vim 9.2.0488-1<9.2.0620-1
9.2.0620-1
IBM QRadar<=7.6.0.0 - 7.6.0.4
IBM QRadar<=7.5.0 - 7.5.0 UP16 IF01

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/vim to a version that resolves this vulnerability.

    Fixed in 2:9.2.0524-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.2.0620-1
  3. Upgrade

    Upgrade vim to a version that resolves this vulnerability.

    Fixed in 9.2.0496

Event History

Jun 11, 2026
CVE Published
via MITRE·06:31 PM
Data Sourced
via MITRE·06:31 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 13, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeaknessAffected Software
Jun 19, 2026
Data Sourced
via Ubuntu·06:48 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·06:49 PM
DescriptionAffected Software
Data Sourced
via Launchpad·06:49 PM
Description
Oct 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-47167?

CVE-2026-47167 has a medium severity rating of 5.1 according to the CVSS score.

2

How do I fix CVE-2026-47167?

To fix CVE-2026-47167, upgrade to Vim version 9.2.0496 or later where the vulnerability has been addressed.

3

What type of vulnerability is CVE-2026-47167?

CVE-2026-47167 is a code injection vulnerability affecting the cucumber filetype plugin in Vim.

4

Which Vim versions are affected by CVE-2026-47167?

CVE-2026-47167 affects Vim versions prior to 9.2.0496 that are built with +ruby support.

5

What is the attack vector for CVE-2026-47167?

The attack vector for CVE-2026-47167 is local, as it requires the attacker to have access to the affected Vim installation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203