CVE-2025-66476
BaseFortify
Publication date: 2025-12-02
Last updated on: 2025-12-03
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| vim | vim | 9.1.1946 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-427 | 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. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability in Vim for Windows prior to version 9.1.1947 involves an uncontrolled search path issue. When Vim uses cmd.exe as a shell, it searches the current working directory before system paths to resolve external commands. This behavior can cause Vim to execute malicious executables placed in the same directory as the file being edited, for example when running commands like :grep, :!, or compiler/:make commands.
How can this vulnerability impact me? :
The vulnerability can lead to the execution of malicious code with the privileges of the user running Vim. This can result in compromise of confidentiality, integrity, and availability of the system, as malicious executables in the current directory may be run unintentionally.
What immediate steps should I take to mitigate this vulnerability?
Update Vim for Windows to version 9.1.1947 or later to ensure the uncontrolled search path vulnerability is fixed. Avoid running Vim in directories where untrusted executables may be present. As a temporary measure, do not use cmd.exe as the shell within Vim or avoid using commands like :grep, :!, or compiler/:make that invoke external commands in untrusted directories.