CVE-2026-51400
Vim vulnerability analysis and mitigation

Overview

CVE-2026-51400 is a memory leak vulnerability in the Vim text editor (v9.2.0389 and earlier) that allows a local attacker to execute arbitrary code via the vms_fixfilename() function within vim/src/os_vms.c. The vulnerability was discovered by XiJie Ao of B429 Laboratory, Wuhan University, and publicly disclosed on August 4, 2026. It carries a CVSS v3.1 base score of 8.4 (High), assigned by CISA-ADP (Github Advisory, Security Advisory Gist).

Technical details

The root cause is classified as CWE-401 (Missing Release of Memory after Effective Lifetime): a static heap buffer allocated within vms_fixfilename() in src/os_vms.c is never freed during the Vim process lifetime. Repeated invocations — such as during long editing sessions or automated file processing — cause continuous memory accumulation, which in extreme cases leads to resource exhaustion. The advisory also associates CWE-94 (Code Injection) with this CVE, suggesting that the memory mismanagement condition may be leveraged by a local attacker to achieve arbitrary code execution, though the precise exploitation mechanism beyond memory exhaustion is not fully detailed in public sources. No user interaction or elevated privileges are required for exploitation (Security Advisory Gist, Github Advisory).

Impact

Successful exploitation could result in high confidentiality, integrity, and availability impact on the affected system, as reflected in the CVSS score. A local attacker can trigger arbitrary code execution with the privileges of the Vim process, potentially enabling unauthorized data access, modification, or denial of service through resource exhaustion. The vulnerability is limited to local attack vectors and does not affect Vim instances running on non-VMS platforms, as the vulnerable code resides in the VMS-specific os_vms.c file (Security Advisory Gist, Red Hat Bugzilla).

Exploitability

There is currently no public proof-of-concept exploit or evidence of in-the-wild exploitation for CVE-2026-51400. CISA's SSVC assessment notes exploitation status as "none" and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.124% (3rd percentile), indicating a low near-term exploitation probability (Github Advisory, Security Advisory Gist).

Mitigation and workarounds

Users should update Vim to a version later than v9.2.0389, which resolves the memory management issue in vms_fixfilename(). As an interim measure, administrators should restrict local access to systems running vulnerable Vim versions and monitor for unusual memory consumption by Vim processes. A patch has been confirmed available per the GitHub Advisory and Red Hat Bugzilla tracking (Github Advisory, Red Hat Bugzilla).

Community reactions

Red Hat has opened a tracking bug (Bug 2511268) for this CVE with medium priority and severity, indicating it is being assessed for impact on Red Hat products. No significant public researcher commentary or broader media coverage has been identified at this time (Red Hat Bugzilla).

Additional resources


SourceThis report was generated using AI

Related Vim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73078HIGH8.6
  • Vim logoVim
  • cpe:2.3:a:vim:vim
NoYesAug 11, 2026
CVE-2026-73077HIGH8.4
  • Vim logoVim
  • vim
NoYesAug 11, 2026
CVE-2026-43961HIGH7.8
  • Vim logoVim
  • vim-data-common
NoYesAug 19, 2026
CVE-2026-73073HIGH7.1
  • Vim logoVim
  • cpe:2.3:a:vim:vim
NoYesAug 18, 2026
CVE-2026-19617MEDIUM5.5
  • Vim logoVim
  • vim
NoNoAug 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management