---
title: Vim on Windows could run a planted executable from the current directory via job_start(), term_start() and List-form system(); fixed in Vim 9.2.1421 | ctxsec
url: https://ctxsec.com/items/vim-windows-job-start-system-cwd-executable-search-fixed-9-2-1421-ghsa-6mf5-6cf6-hf9c
description: "A follow-up to GHSA-g77q-xrww-p834: the earlier fix set $NoDefaultCurrentDirectoryInExePath only for shell commands, but these calls use CreateProcessW() directly. A trojanized git.exe in a cloned repo could run when a plugin starts git by name. Rated medium; CVE requested."
status: "official (Vim security advisory)"
published: 2026-11-28
---

> A follow-up to GHSA-g77q-xrww-p834: the earlier fix set $NoDefaultCurrentDirectoryInExePath only for shell commands, but these calls use CreateProcessW() directly. A trojanized git.exe in a cloned repo could run when a plugin starts git by name. Rated medium; CVE requested.

[← Cybersecurity News](/news) · [markdown](/items/vim-windows-job-start-system-cwd-executable-search-fixed-9-2-1421-ghsa-6mf5-6cf6-hf9c.md)

official (Vim security advisory)

2026-11-28 2:50 PM ET

### Vim on Windows could run a planted executable from the current directory via job_start(), term_start() and List-form system(); fixed in Vim 9.2.1421

- **Affected:** Vim on Windows before patch 9.2.1421. Calls that bypass the shell, `job_start()`, `term_start()` (ConPTY) and, since 9.2.0025, `system()`/`systemlist()` with a List argument, still let `CreateProcessW()` search the current directory first.
- **Attack:** place an executable with a common name (e.g. `git.exe`) in a project folder; it runs with the user's privileges when Vim's working directory is that folder and a plugin (Git integration, LSP client, linter) starts the program by name.
- **Severity:** medium per the Vim project (CWE-427); CVE requested, not yet assigned. Reported by Mark Woods.
- **Fix:** update to Vim 9.2.1421 or later (GHSA-6mf5-6cf6-hf9c).

Sources: [oss-security: Vim advisory (Nov 28, 2026)](https://seclists.org/oss-sec/2026/q4/914) · [Vim GitHub Security Advisory GHSA-6mf5-6cf6-hf9c](https://github.com/vim/vim/security/advisories/GHSA-6mf5-6cf6-hf9c) · [Vim v9.2.1421 release](https://github.com/vim/vim/releases/tag/v9.2.1421)
