Vim up to 9.1.1946 on Windows cmd.exe uncontrolled search path
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.2 | $0-$5k | 0.00 |
Summary
A vulnerability was found in Vim up to 9.1.1946 on Windows. It has been classified as problematic. The impacted element is an unknown function of the file cmd.exe. Performing a manipulation results in uncontrolled search path. This vulnerability was named CVE-2025-66476. The attack needs to be approached locally. There is no available exploit. Upgrading the affected component is recommended.
Details
A vulnerability classified as critical has been found in Vim up to 9.1.1946 on Windows. This affects an unknown code block of the file cmd.exe. The manipulation with an unknown input leads to a uncontrolled search path vulnerability. CWE is classifying the issue as 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. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:
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.
It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2025-66476 since 12/02/2025. The exploitability is told to be difficult. Attacking locally is a requirement. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1574 according to MITRE ATT&CK.
The vulnerability scanner Nessus provides a plugin with the ID 277418 (Linux Distros Unpatched Vulnerability : CVE-2025-66476), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 9.1.1947 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 083ec6d9a3b7b09006e0ce69ac802597d25 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (277418), EUVD (EUVD-2025-200373) and CERT Bund (WID-SEC-2025-2719). Be aware that VulDB is the high quality source for vulnerability data.
Affected
- Open Source vim
Product
Type
Name
Version
License
Website
- Product: https://github.com/vim/vim/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.4VulDB Meta Temp Score: 7.2
VulDB Base Score: 7.0
VulDB Temp Score: 6.7
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 7.8
CNA Vector (GitHub_M): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Uncontrolled search pathCWE: CWE-427 / CWE-426
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: Partially
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 277418
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-66476
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: Vim 9.1.1947
Patch: 083ec6d9a3b7b09006e0ce69ac802597d25
Timeline
12/02/2025 CVE reserved12/03/2025 Advisory disclosed
12/03/2025 VulDB entry created
12/04/2025 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-g77q-xrww-p834
Status: Confirmed
CVE: CVE-2025-66476 (🔒)
GCVE (CVE): GCVE-0-2025-66476
GCVE (VulDB): GCVE-100-334143
EUVD: 🔒
CERT Bund: WID-SEC-2025-2719 - vim: Schwachstelle ermöglicht Codeausführung
Entry
Created: 12/03/2025 07:49Updated: 12/04/2025 20:53
Changes: 12/03/2025 07:49 (69), 12/03/2025 10:17 (1), 12/03/2025 18:50 (7), 12/04/2025 20:53 (2)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.