Skip to content
Fencer Vulns
medium 4.4

CVE-2026-42307 json

Vim: OS Command Injection in netrw

published 2026-05-08 6 mo ago modified 2026-07-24 3 mo ago also EUVD-2026-28851

cvss
4.4
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 55%
public exploits
0
none known

Summary

Vim is an open source, command line text editor. Prior to version 9.2.0383, an OS command injection vulnerability exists in the netrw standard plugin bundled with Vim. By inducing a user to open a crafted URL (e.g., using the sftp:// or file:// protocol handlers), an attacker can execute arbitrary shell commands with the privileges of the Vim process. This issue has been patched in version 9.2.0383.

Patch / fix

  • vim vim 9.2.0383
  • vim Debian 13 2:9.1.1230-2+deb13u1
  • vim Debian 14 2:9.2.0428-1

debian advisories DEBIAN-CVE-2026-42307

  • vim Ubuntu 22.04 LTS 2:8.2.3995-1ubuntu2.30
  • vim Ubuntu 24.04 LTS 2:9.1.0016-1ubuntu7.14
  • vim Ubuntu 25.10 2:9.1.0967-1ubuntu6.5
  • vim Ubuntu 26.04 LTS 2:9.1.2141-1ubuntu4.2
  • vim Ubuntu Pro 14.04 LTS 2:7.4.052-1ubuntu3.1+esm26
  • vim Ubuntu Pro 16.04 LTS 2:7.4.1689-3ubuntu1.5+esm32
  • vim Ubuntu Pro 18.04 LTS 2:8.0.1453-1ubuntu1.13+esm17
  • vim Ubuntu Pro 20.04 LTS 2:8.1.2269-1ubuntu5.32+esm5

ubuntu advisories UBUNTU-CVE-2026-42307

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • vim SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +3 more 9.2.0530-150000.5.94.1
  • vim Linux Micro Extras 6.2 9.2.0530-160000.1.1

suse advisories SUSE-SU-2026:2313-1SUSE-SU-2026:21833-1

  • vim openSUSE Tumbleweed 9.2.0530-1.1

opensuse advisories openSUSE-SU-2026:11114-1

  • vim Alpine 3.24, Alpine 3.23 9.2.0389-r0

alpine advisories ALPINE-CVE-2026-42307

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-42307 updated cvss 4.4

Vim: Vim: Arbitrary code execution via OS command injection in netrw plugin

  • Red Hat Enterprise Linux 6 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 7 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 8 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 9 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 10 vim Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9
    +1 more products
    Red Hat OpenShift Container Platform 5 openshift/ose-rhel-coreos-9
    affected: workaround, no fix available “Red Hat is not aware of a practical temporary workaround that fully mitigates this issue or meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel9
    under investigation

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
5 mo ago

Exploit prediction

0.77% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.4 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected products

  • vim vim

Classification

Weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.