Bug 2418541 (CVE-2025-66476) - CVE-2025-66476 vim: Vim for Windows: Uncontrolled search path vulnerability allows arbitrary code execution
Summary: CVE-2025-66476 vim: Vim for Windows: Uncontrolled search path vulnerability a...
Keywords:
Status: NEW
Alias: CVE-2025-66476
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-02 22:01 UTC by OSIDB Bzimport
Modified: 2025-12-03 10:22 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-02 22:01:28 UTC
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.

Comment 2 TEJ RATHI 2025-12-03 10:22:55 UTC
This flaw is specific to Vim on Microsoft Windows systems and arises from Windows-only search-path behavior when external commands are invoked. The vulnerable code path does not exist in Vim builds for Linux. As a result, Red Hat products are not affected by this vulnerability.


Note You need to log in before you can comment on or make changes to this bug.