{"id":"CVE-2025-66476","aliases":["CVE-2025-66476"],"related":[],"kind":"vulnerability","state":"published","title":"Vim for Windows Uncontrolled Search Path Element Remote Code Execution Vulnerability","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. The issue affects Vim for Windows prior to version 9.1.1947.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-02T21:49:24.672Z","modified":"2026-10-18T18:10:00.100Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-427"],"affected":[{"ranges":[{"version":"< 9.1.1947","status":"affected"}],"vendor":"vim","product":"vim","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"9.1.1947"}],"vendor":"vim","product":"vim","cpe":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-g77q-xrww-p834","tags":["patch","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/commit/083ec6d9a3b7b09006e0ce69ac802597d25","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/releases/tag/v9.1.1947","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/12/02/5","tags":["mailing-list","patch","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-12-05T04:56:30.559Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66476","url":"https://www.cve.org/CVERecord?id=CVE-2025-66476","licence":"CVE Terms of Use","modified":"2026-02-26T16:57:37.255Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66476","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66476","licence":"Public domain","modified":"2026-10-18T18:10:00.100Z"}],"updatedAt":"2026-11-25T22:59:08.215Z","epss":{"score":0.00455,"percentile":0.41188,"date":"2026-12-01T12:00:22.000Z"}}