{"id":"CVE-2026-47167","aliases":["CVE-2026-47167"],"related":[],"kind":"vulnerability","state":"published","title":"Vim: Vimscript Code Injection in cucumber filetype plugin via crafted step-definition regex","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-06-11T18:31:44.286Z","modified":"2026-06-17T10:54:22.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-94","CWE-95"],"affected":[{"ranges":[{"version":"< 9.2.0496","status":"affected"}],"vendor":"vim","product":"vim","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"9.2.0496"}],"vendor":"vim","product":"vim","cpe":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-4473-94jm-w5x9","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/commit/a65a52d684bc58535ad28a4ae824d22e76399934","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/releases/tag/v9.2.0496","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-12T03:55:41.579Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47167","url":"https://www.cve.org/CVERecord?id=CVE-2026-47167","licence":"CVE Terms of Use","modified":"2026-06-12T12:47:36.304Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47167","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47167","licence":"Public domain","modified":"2026-06-17T10:54:22.263Z"}],"updatedAt":"2026-11-25T22:59:24.455Z","epss":{"score":0.00135,"percentile":0.03194,"date":"2026-12-01T12:00:22.000Z"}}