# CVE-2026-55895: Vim code injection in netrw plugin via crafted filename

Source: https://junglewise.ai/threats/cve-2026-55895-vim-code-injection-in-netrw-plugin-via-crafted-filename  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-25. Updated: 2026-06-25  
License: CC BY 4.0 with a link back

CVE-2026-55895 · Severity: info · CVSS 5.7 · Published 2026-06-25

Vim is a widely used open-source text editor. A security vulnerability in its built-in file explorer (netrw) allows for the execution of unauthorized commands if a user attempts to delete a specially crafted file. An attacker who can place a file with a malicious name on a system could potentially take control of a user's account or access sensitive data if the user interacts with that file through Vim's file browser.

Technologies: [Vim](https://junglewise.ai/threats/technologies/vim). Vendors: [Vim](https://junglewise.ai/threats/vendors/vim).

## Quick answers

**Is CVE-2026-55895 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-55895 being exploited in the wild.

**How severe is CVE-2026-55895?** Informational severity, with a CVSS score of 5.7, published 25 June 2026.

**Which products and versions are affected?** Vim < 9.2.0663.

**Is there a fix for CVE-2026-55895?** A patch was published on 2026-06-16: Vim patch v9.2.0663 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-55895 attacked?** It is attacked with local access, in a network appliance.

**Am I affected by CVE-2026-55895?** Check whether you run Vim at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A Vimscript code injection vulnerability exists in the s:NetrwLocalRmFile() function within the netrw plugin (runtime/pack/dist/opt/netrw/autoload/netrw.vim). The root cause is insufficient sanitization of filenames before they are passed to the :execute command; specifically, only backslashes are escaped, while the pipe character (|) is not. An attacker can craft a filename containing a pipe character to terminate the intended 'bwipeout' command and execute arbitrary Vimscript or shell commands (via :! or system()). Exploitation requires the victim to browse a directory containing the malicious file using netrw and manually trigger the delete action (D mapping) on that specific file. The issue is resolved in Vim version 9.2.0663 by using fnameescape() for proper filename neutralization.

## Affected products

- Vim Vim < 9.2.0663

## Timeline

- 2026-06-16: patched: Vim patch v9.2.0663 released
- 2026-06-16: advisory: GitHub Security Advisory GHSA-vhh8-v6wx-hjjh published
- 2026-06-25: disclosed: NVD publication date

## References

- [https://github.com/vim/vim/commit/55bc757a5d436e59d50fe43f7cda94b118f86cb2](https://github.com/vim/vim/commit/55bc757a5d436e59d50fe43f7cda94b118f86cb2)
- [https://github.com/vim/vim/releases/tag/v9.2.0663](https://github.com/vim/vim/releases/tag/v9.2.0663)
- [https://github.com/vim/vim/security/advisories/GHSA-vhh8-v6wx-hjjh](https://github.com/vim/vim/security/advisories/GHSA-vhh8-v6wx-hjjh)

## Related threats

- [Vim is an open source, command line text editor. Prior to 9.2.0845, StructMembers() in runtime/autoload/ccomplete.vim…](https://junglewise.ai/threats/cve-2026-73073-vim-is-an-open-source-command-line-text-editor-prior-to-9-2-0845)
- [Vim netrw code injection via menu construction](https://junglewise.ai/threats/cve-2026-73078-vim-netrw-code-injection-via-menu-construction)
- [Vim shell filetype plugin OS command injection via keyword lookup](https://junglewise.ai/threats/cve-2026-73077-vim-shell-filetype-plugin-os-command-injection-via-keyword-lookup)
- [Vim vimball arbitrary command execution via .VimballRecord](https://junglewise.ai/threats/cve-2026-73076-vim-vimball-arbitrary-command-execution-via-vimballrecord)
- [Vim out-of-bounds access in popup opacity handling](https://junglewise.ai/threats/cve-2026-73075-vim-out-of-bounds-access-in-popup-opacity-handling)
