CVE-2026-51401 Code injection in n/a

High 7.7 Published Updated

A local attacker can execute arbitrary code in Vim via the vms_fixfilename function, requiring an upgrade to mitigate.

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-51401?

CVE-2026-51401 is a high-severity code injection 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-94

Which versions are affected by CVE-2026-51401?

It affects 1 product.

Products include Vim Vim.

How do I fix CVE-2026-51401?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-51401 being exploited?

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

All Vim Vim vulnerabilities

Sources

Also known as GHSA-wv45-rxv4-pf47.

Is CVE-2026-51401 in your software?

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

Check your SBOMs for free