CVE-2026-55895
Vim: Vimscript Code Injection in netrw NetrwLocalRmFile() via crafted filename
Reported by github_m · Published June 25, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-data | Amazon Linux | 2:9.2.725-1.amzn2023.0.1 |
| vim-minimal | Amazon Linux | 2:9.2.725-1.amzn2023.0.1, 2:9.0.2153-1.amzn2.0.8 |
| vim-default-editor | Amazon Linux | 2:9.2.725-1.amzn2023.0.1 |
| vim-common | Amazon Linux | 2:9.0.2153-1.amzn2.0.8 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.2.0663 |
| amazon:2023 | vim-data | 0 |
| amazon:2023 | vim-minimal | 0 |
| amazon:2 | vim-minimal | 0 |
| amazon:2023 | vim-default-editor | 0 |
| amazon:2 | vim-common | 0 |
| vim | vim | 0 |
| amazon:2 | xxd | 0 |
| amazon:2 | vim-data | 0 |
| amazon:2 | vim-X11 | 0 |
| amazon:2023 | vim-common | 0 |
| amazon:2023 | vim-filesystem | 0 |
| amazon:2023 | xxd | 0 |
| alpine | vim | 0, 0 |
| amazon:2023 | vim-enhanced | 0 |
| amazon:2 | vim-filesystem | 0 |
| amazon:2 | vim-enhanced | 0 |
Timeline
- Jun 25, 2026 CVE Published
- Jun 26, 2026 EPSS Score (17 in total, the first dated here)
- Jun 29, 2026 Security Advisory (2 in total, the first dated here)
- Aug 11, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-55895
vulnetix vdb fixes CVE-2026-55895
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-55895/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vim/vim/security/advisories/GHSA-vhh8-v6wx-hjjh x_refsource_CONFIRM
- https://github.com/vim/vim/commit/55bc757a5d436e59d50fe43f7cda94b118f86cb2 x_refsource_MISC
- https://github.com/vim/vim/releases/tag/v9.2.0663 x_refsource_MISC