CVE-2026-51400

8.4

Vim Project · Vim

A vulnerability in Vim Project v9.2.0389 and earlier allows local attackers to achieve arbitrary code execution via the vms_fixfilename function in src/os_vms.c.

Executive summary

A critical vulnerability in the Vim text editor allows a local attacker to execute arbitrary code, posing a significant risk to host system integrity.

Vulnerability

This is a memory-related flaw residing in the vms_fixfilename function within the os_vms.c source file. The vulnerability allows an unauthenticated local attacker to trigger arbitrary code execution.

Business impact

Successful exploitation grants an attacker the ability to execute commands with the privileges of the user running the Vim application. Given the CVSS score of 8.4, this represents a high-severity risk that could lead to full system compromise, unauthorized data access, and potential lateral movement within the environment.

Remediation

Immediate Action: Users should restrict access to vulnerable Vim binaries and monitor vendor security channels for the release of a patched version.

Proactive Monitoring: Security teams should monitor system logs for unusual process execution patterns or unexpected file system modifications initiated by the Vim process.

Compensating Controls: Implement strict file system permissions to limit which users can execute the Vim binary, and utilize host-based intrusion detection systems to monitor for anomalous behavior.

Exploitation status

Public Exploit Available: Unknown.

Analyst recommendation

This vulnerability presents a significant risk to systems where Vim is utilized. Administrators must prioritize identifying all instances of the affected software within their environment. While a specific patch version is currently unavailable, organizations should prepare to apply security updates as soon as they are provided by the Vim Project to mitigate the risk of arbitrary code execution.

More Vim Project CVEs

Sources