CVE-2025-66476: Vim for Windows Uncontrolled Search Path Element Remote Code Execution Vulnerability

Published Dec 2, 2025
·
Updated

Vim for Windows Uncontrolled Search Path Element Remote Code Execution Vulnerability

Other sources

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

Affected Software

5 affected components
vim Vim for Windows<9.1.1947
Microsoft cbl2 vim 9.1.1616-1
Microsoft azl3 vim 9.1.1616-1
All of the following
vim Vim<9.1.1947
Microsoft Windows

Event History

Dec 2, 2025
CVE Published
via MITRE·09:49 PM
Data Sourced
via MITRE·09:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Dec 5, 2025
Data Sourced
via Microsoft·01:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:03 AM
Affected Software
Updated
via Microsoft·01:03 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-66476?

CVE-2025-66476 is considered a high severity vulnerability due to its potential for executing malicious code.

2

How do I fix CVE-2025-66476?

To fix CVE-2025-66476, upgrade Vim for Windows to version 9.1.1947 or later.

3

What platforms are affected by CVE-2025-66476?

CVE-2025-66476 specifically affects Vim for Windows prior to version 9.1.1947.

4

What type of vulnerability is CVE-2025-66476?

CVE-2025-66476 is an uncontrolled search path vulnerability that can lead to arbitrary code execution.

5

Who should be concerned about CVE-2025-66476?

Users and administrators of Vim for Windows versions prior to 9.1.1947 should be concerned about CVE-2025-66476.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203