CVE-2025-66476 Details
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.
A vulnerability in Vim for Windows prior to version 9.1.1947 allows for uncontrolled search path exploitation, enabling the execution of malicious executables located in the current working directory of the file being edited. This issue arises because Vim, when using cmd.exe as the shell, prioritizes the current directory over system paths when resolving external commands. As a result, tools like findstr for :grep, external commands via :!, or compiler commands through :make can inadvertently execute a harmful executable, such as one disguised as findstr.exe, if the user has navigated to that directory or opened a file from it.
Users can update to Vim version 9.1.1947 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 5, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/12/02/5 | CVE | Mailing ListPatchThird Party Advisory |
| https://github.com/vim/vim/commit/083ec6d9a3b7b09006e0ce69ac802597d25 | [email protected] | Patch |
| https://github.com/vim/vim/releases/tag/v9.1.1947 | [email protected] | Release Notes |
| https://github.com/vim/vim/security/advisories/GHSA-g77q-xrww-p834 | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-427 | Uncontrolled Search Path Element | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vim vim | < 9.1.1947 |
CPE
Remediation
| |
| microsoft windows | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 30, 2026 | Initial Analysis | [email protected] |
| Dec 3, 2025 | CVE Modified | CVE |
| Dec 2, 2025 | New CVE Received | [email protected] |