CVE-2025-66476
JSON

7.8high

Vim for Windows Uncontrolled Search Path Element Remote Code Execution Vulnerability

Severity
7.8high CVSS:3.1 by GitHub_M
Exploit likelihood
0.46% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
vim vim< 9.1.1947, before 9.1.1947CVE List, NVD

Classification

CWE-427

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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 (es)

Vim es un editor de texto de código abierto y de línea de comandos. Versiones anteriores a la versión 9.1.1947, una vulnerabilidad de ruta de búsqueda incontrolada en Windows permite a Vim ejecutar ejecutables maliciosos colocados en el directorio de trabajo actual para el archivo editado actualmente. En Windows, al usar cmd.exe como shell, Vim resuelve comandos externos buscando en el directorio de trabajo actual antes que en las rutas del sistema. Cuando Vim invoca herramientas como findstr para :grep, comandos externos o filtros a través de :!, o comandos de compilador/:make, puede ejecutar inadvertidamente un ejecutable malicioso presente en el mismo directorio que el archivo que se está editando. El problema afecta a Vim para Windows versiones anteriores a la versión 9.1.1947.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-66476 changed 2026-02-26CVE Terms of Use
NVDCVE-2025-66476 changed 2026-10-18Public domain