CVE-2025-66476
Vim for Windows Uncontrolled Search Path Element Remote Code Execution Vulnerability
Reported by github_m · Published December 2, 2025
Vim is an open source, command line text editor. Prior to version 9.1.1947, an uncontrolled search path vulnerability on Windows allows Vim to execute malicious executables placed in the current working directory for the current edited file. On Windows, when using cmd.exe as a shell, Vim resolves external commands by searching the current working directory before system paths. When Vim invokes tools such as findstr for :grep, external commands or filters via :!, or compiler/:make commands, it may inadvertently run a malicious executable present in the same directory as the file being edited. The issue affects Vim for Windows prior to version 9.1.1947.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim | vim | 9.1.1947 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.1.1947 |
| vim | vim | 0 |
Timeline
- Dec 2, 2025 PoC Published (5 in total, the first dated here)
- Dec 2, 2025 CVE Published
- Dec 3, 2025 EPSS Score (30 in total, the first dated here)
- Feb 1, 2026 Security Advisory (44 in total, the first dated here)
- Feb 26, 2026 CVE Updated
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-66476
vulnetix vdb fixes CVE-2025-66476
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-66476/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart