{"id":"CVE-2026-55895","state":"PUBLISHED","title":"Vim: Vimscript Code Injection in netrw NetrwLocalRmFile() via crafted filename","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.","publishedAt":"2026-06-25T15:31:29.349Z","updatedAt":"2026-06-26T03:55:57.340Z","severity":{"score":5.7,"label":"Medium","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["vim vim"],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.2.0663","status":"affected"}]}],"references":["https://github.com/vim/vim/security/advisories/GHSA-vhh8-v6wx-hjjh","https://github.com/vim/vim/commit/55bc757a5d436e59d50fe43f7cda94b118f86cb2","https://github.com/vim/vim/releases/tag/v9.2.0663"],"weaknesses":["CWE-78","CWE-94"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/55xxx/CVE-2026-55895.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-55895","state":"PUBLISHED","datePublished":"2026-06-25T15:31:29.349Z","dateUpdated":"2026-06-26T03:55:57.340Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-17T16:59:42.760Z"},"containers":{"cna":{"title":"Vim: Vimscript Code Injection in netrw NetrwLocalRmFile() via crafted filename","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.2.0663","status":"affected"}]}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-vhh8-v6wx-hjjh","name":"https://github.com/vim/vim/security/advisories/GHSA-vhh8-v6wx-hjjh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/commit/55bc757a5d436e59d50fe43f7cda94b118f86cb2","name":"https://github.com/vim/vim/commit/55bc757a5d436e59d50fe43f7cda94b118f86cb2","tags":["x_refsource_MISC"]},{"url":"https://github.com/vim/vim/releases/tag/v9.2.0663","name":"https://github.com/vim/vim/releases/tag/v9.2.0663","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":5.7,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-06-25T15:31:29.349Z"},"source":{"advisory":"GHSA-vhh8-v6wx-hjjh","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-25T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-55895"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-26T03:55:57.340Z"}}]}}}