CVE-2026-51400 Memory corruption in n/a

High 8.4 Published Updated

A local attacker can execute arbitrary code in Vim via a memory corruption flaw in the vms_fixfilename function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-51400?

CVE-2026-51400 is a high-severity memory corruption vulnerability in Vim Vim, published on 4 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An issue in Vim Project v9.2.0389 and earlier allows a local attacker to execute arbitrary code via the vms_fixfilename() function within file vim/src/os_vms.c

Weakness: CWE-401

Which versions are affected by CVE-2026-51400?

It affects 1 product.

Products include Vim Vim.

How do I fix CVE-2026-51400?

No fix has been published for CVE-2026-51400 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-51400 being exploited?

There is no known exploitation of CVE-2026-51400 in the wild and no public exploit code.

All Vim Vim vulnerabilities

Sources

Also known as GHSA-c4x9-mpg2-r897.

Is CVE-2026-51400 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free