CVE-2025-66476: Vim for Windows Uncontrolled Search Path Element Remote Code Execution Vulnerability
Vim for Windows Uncontrolled Search Path Element Remote Code Execution Vulnerability
Other sources
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.
— NVD
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2025-66476?
CVE-2025-66476 is considered a high severity vulnerability due to its potential for executing malicious code.
How do I fix CVE-2025-66476?
To fix CVE-2025-66476, upgrade Vim for Windows to version 9.1.1947 or later.
What platforms are affected by CVE-2025-66476?
CVE-2025-66476 specifically affects Vim for Windows prior to version 9.1.1947.
What type of vulnerability is CVE-2025-66476?
CVE-2025-66476 is an uncontrolled search path vulnerability that can lead to arbitrary code execution.
Who should be concerned about CVE-2025-66476?
Users and administrators of Vim for Windows versions prior to 9.1.1947 should be concerned about CVE-2025-66476.