CVE-2026-55895 Vim: Vimscript Code Injection in netrw NetrwLocalRmFile() via crafted filename

Medium 5.7 Published Updated

Attackers can execute arbitrary Vimscript and shell commands by crafting filenames with pipe characters in the netrw plugin.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-55895?

CVE-2026-55895 is a medium-severity code injection vulnerability in Vim Vim, published on 25 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Vim is an open source, command line text editor. Prior to 9.2.0663, a Vimscript code injection vulnerability exists in s:NetrwLocalRmFile() in the netrw plugin (runtime/pack/dist/opt/netrw/autoload/netrw.vim) when deleting a local file from the browser. A filename derived from the buffer's directory listing is interpolated into an Ex command line passed to :execute with only the backslash character escaped, allowing a crafted filename containing a bar (|) to terminate the intended command and execute arbitrary Vimscript, including shell commands via :call system() and :!. This vulnerability is fixed in 9.2.0663.

Weakness: CWE-94, CWE-78

Which versions are affected by CVE-2026-55895?

It affects 1 product.

Products include Vim Vim.

How do I fix CVE-2026-55895?

Upgrade to a fixed version.

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

Is CVE-2026-55895 being exploited?

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

All Vim Vim vulnerabilities

Sources

Also known as ALPINE-CVE-2026-55895, AZL-91104, BELL-CVE-2026-55895, DEBIAN-CVE-2026-55895, ECHO-090a-b306-0693, GHSA-vhh8-v6wx-hjjh and 4 more.

Is CVE-2026-55895 in your software?

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

Check your SBOMs for free