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

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-06-11T18:31:44.286Z
- Modified: 2026-06-17T10:54:22.263Z
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0496; before 9.2.0496

## Every score

- GitHub_M: 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`
- NVD: 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`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-4473-94jm-w5x9> (vendor-advisory)
- <https://github.com/vim/vim/commit/a65a52d684bc58535ad28a4ae824d22e76399934> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0496> (product)

## Sources

- CVE List: [CVE-2026-47167](https://www.cve.org/CVERecord?id=CVE-2026-47167), CVE Terms of Use, modified 2026-06-12
- NVD: [CVE-2026-47167](https://nvd.nist.gov/vuln/detail/CVE-2026-47167), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-47167 · Whole record: https://cve.day/CVE-2026-47167.json · Rebuilt by cve.day 2026-11-25T22:59:24.455Z
