---
title: Tip: on Windows, opening an untrusted repo in an editor can run a planted git.exe; update editors and treat cloned folders as untrusted | ctxsec
url: https://ctxsec.com/items/tip-windows-untrusted-repos-cwd-executable-hijack-nodefaultcurrentdirectoryinexepath
description: "The Vim 9.2.1421 fix shows a recurring Windows pattern: programs launched by bare name can be resolved from the current directory before PATH. Update Vim, and be careful starting editors with plugins inside freshly cloned repositories."
status: "guide (based on Vim advisory)"
published: 2026-11-28
---

> The Vim 9.2.1421 fix shows a recurring Windows pattern: programs launched by bare name can be resolved from the current directory before PATH. Update Vim, and be careful starting editors with plugins inside freshly cloned repositories.

[← Tips & Guides](/tips) · [markdown](/items/tip-windows-untrusted-repos-cwd-executable-hijack-nodefaultcurrentdirectoryinexepath.md)

guide (based on Vim advisory)

2026-11-28 2:50 PM ET

### Tip: on Windows, opening an untrusted repo in an editor can run a planted git.exe; update editors and treat cloned folders as untrusted

- **Why it matters:** Windows process creation can search the current directory before system directories and `%PATH%`, so a repo containing `git.exe`, a linter or a language-server binary can hijack a plugin that launches that tool by name (CWE-427).
- **Do now:** update Vim to 9.2.1421+ on Windows (GHSA-6mf5-6cf6-hf9c).
- **Habits:** review unfamiliar repos for stray `.exe`/`.bat`/`.cmd` files before opening them with plugin-heavy editors; prefer opening untrusted code in a sandbox or VM.
- **Hunt:** look for developer tools (git, node, python, linters) executing from user project folders instead of their install paths.

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)
