CVE-2025-66476CWE-427

CVE-2025-66476

High · published December 3, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
38.4
In the wild
Unconfirmed
What it is

⚡ An overlooked flaw in Vim before version 9.1.1947 could let a crafty attacker execute malicious files just by being in the same directory! 🚨 Think of it like a restaurant where the chef is instructed to check the pantry first for ingredients. If a sneaky chef hides a dangerous item among the spices, the dish can take a disastrous turn! An attacker could place a malicious executable in the directory of the file being edited, which Vim may unwittingly execute using commands like :grep or :make. This could lead to unauthorized access, data loss, or even a complete system compromise – an absolute nightmare for any user!

Put simply

Think of it like a restaurant where the chef is instructed to check the pantry first for ingredients. If a sneaky chef hides a dangerous item among the spices, the dish can take a disastrous turn! This vulnerability arises because Vim resolves external commands by searching the current working directory before system paths, which means it may execute harmful executables present in that directory without proper validation.

What to do

An attacker could place a malicious executable in the directory of the file being edited, which Vim may unwittingly execute using commands like :grep or :make. This could lead to unauthorized access, data loss, or even a complete system compromise – an absolute nightmare for any user! To protect yourself, immediately update Vim to version 9.1.1947 or later. Additionally, ensure that your working directories are secure and consider reviewing your command execution practices to prevent unauthorized command execution. 🛡️ You've got this! With a quick update, your Vim setup will be back to safe and sound in no time! 💪✨

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00453 · 38.4th percentile
Weakness
CWE-427 · Uncontrolled Search Path Element
Published
2025-12-03T03:16Z
Affected products (1)
ProductVersionsFixed in
vim/vim< 9.1.19479.1.1947
References (4)
EPSS history
Timeline
  • 02 DEC 21:49Z
    Vim for Windows Uncontrolled Search Path Element Remote Code Execution Vulnerability
    cvelistv5