JLSEC-2026-1874: Code Injection

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
julia/vim_jll*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Vim to a version that resolves this vulnerability.

    Fixed in 9.2.0496

Event History

Dec 2, 2026
Advisory Published
via OSV·02:32 PM
Data Sourced
via OSV·02:32 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Who is exposed to this issue?

Users are exposed when they open an attacker-controlled repository containing crafted Ruby step-definition files under features/*/ or stories/*/, use a Vim build compiled with +ruby support, and invoke a step-jump mapping such as [d or ]d.

2

What action triggers exploitation?

Exploitation requires user interaction: the user must invoke the cucumber plugin's step-jump mapping. The crafted pattern is then incorporated into a Ruby Kernel.eval call, which can execute arbitrary Ruby and potentially shell commands.

3

Which versions contain the fix?

The issue is patched in Vim version 9.2.0496. Versions prior to 9.2.0496 are affected when the other required conditions are present.

4

What can be done before updating?

Avoid invoking the cucumber step-jump mappings ([d and ]d) in untrusted repositories, particularly repositories with Ruby files beneath features/*/ or stories/*/. Builds without +ruby support are not described as affected.

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