cve.bz

CVE-2026-55895 vim vim: OS Command Injection

5.7 mediumEPSS 0.2%Fix available

Medium (5.7) in vim vim. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

5.7 medium
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

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-06-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-55895 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-55895?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-55895?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-55895 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vim:vimbefore 9.2.0663

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vimno fix listedDEBIAN-CVE-2026-55895
Debian13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-55895 DSA-6600-1
Debian14vim2:9.2.0782-1DEBIAN-CVE-2026-55895
Ubuntu22.04:LTSvim2:8.2.3995-1ubuntu2.33UBUNTU-CVE-2026-55895 USN-8500-1
Ubuntu24.04:LTSvim2:9.1.0016-1ubuntu7.17UBUNTU-CVE-2026-55895 USN-8500-1
Ubuntu25.10vim2:9.1.0967-1ubuntu6.8UBUNTU-CVE-2026-55895 USN-8500-1
Ubuntu26.04:LTSvim2:9.1.2141-1ubuntu4.6UBUNTU-CVE-2026-55895 USN-8500-1
UbuntuPro:14.04:LTSvim2:7.4.052-1ubuntu3.1+esm30USN-8500-1
UbuntuPro:16.04:LTSvim2:7.4.1689-3ubuntu1.5+esm36UBUNTU-CVE-2026-55895 USN-8500-1
UbuntuPro:18.04:LTSvim2:8.0.1453-1ubuntu1.13+esm21UBUNTU-CVE-2026-55895 USN-8500-1
UbuntuPro:20.04:LTSvim2:8.1.2269-1ubuntu5.32+esm9UBUNTU-CVE-2026-55895 USN-8500-1
Alpinev3.23vim9.2.0854-r0ALPINE-CVE-2026-55895
Alpinev3.24vim9.2.0663-r0ALPINE-CVE-2026-55895
Azure Linux3vim9.2.0735-1AZL-91104
Alpaquita23, 25vim9.2.0747-r0BELL-CVE-2026-55895
Alpaquitastreamvim9.2.0663-r0BELL-CVE-2026-55895

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important vulnerability in Vim's netrw plugin that could lead to arbitrary code execution. A local attacker could exploit this flaw by enticing a user to delete a specially crafted file within the netrw file browser, allowing for the injection and execution of arbitrary Vimscript commands, including shell commands. This risk is mitigated by the requirement for local user interaction and a specific sequence of actions.

Red Hat's mitigation

To mitigate this vulnerability, users should avoid deleting untrusted or suspicious files directly from Vim's netrw file browser. Exercise caution when interacting with files from unknown or untrusted sources within the editor environment.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10vimNot affected
Red Hat Enterprise Linux 6vimNot affected
Red Hat Enterprise Linux 7vimNot affected
Red Hat Enterprise Linux 8vimNot affected
Red Hat Enterprise Linux 9vimNot affected
Red Hat Hardened ImagesvimNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-55895.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High
  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON