Uncontrolled Search Path Element
CVE-2025-66476
Summary
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.
- LOW
- LOCAL
- HIGH
- UNCHANGED
- REQUIRED
- NONE
- HIGH
- HIGH
CWE-427 - Uncontrolled Search Path Element
The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.
References
Advisory Timeline
- Published