VDB

CVE-2026-55895

CVE-2026-55895 PUBLISHED CVSS 5.7 MEDIUM

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.

PackageEcosystemFixed in
vim-dataAmazon Linux2:9.2.725-1.amzn2023.0.1
vim-minimalAmazon Linux2:9.2.725-1.amzn2023.0.1, 2:9.0.2153-1.amzn2.0.8
vim-default-editorAmazon Linux2:9.2.725-1.amzn2023.0.1
vim-commonAmazon Linux2:9.0.2153-1.amzn2.0.8

Risk scores

CVSS 4.0
5.7
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U

Affected products

VendorProductVersions
vimvim< 9.2.0663
amazon:2023vim-data0
amazon:2023vim-minimal0
amazon:2vim-minimal0
amazon:2023vim-default-editor0
amazon:2vim-common0
vimvim0
amazon:2xxd0
amazon:2vim-data0
amazon:2vim-X110
amazon:2023vim-common0
amazon:2023vim-filesystem0
amazon:2023xxd0
alpinevim0, 0
amazon:2023vim-enhanced0
amazon:2vim-filesystem0
amazon:2vim-enhanced0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›