cve.bz

CVE-2026-42307 vim vim: OS Command Injection

4.4 mediumEPSS 0.8%Fix available

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

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

Severity

CVSS 3.1

4.4 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th 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: partial, assessed 2026-05-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command 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-42307 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42307?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42307?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-42307 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.0383

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vimno fix listedDEBIAN-CVE-2026-42307
Debian13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-42307 DSA-6600-1
Debian14vim2:9.2.0428-1DEBIAN-CVE-2026-42307
Ubuntu22.04:LTSvim2:8.2.3995-1ubuntu2.30UBUNTU-CVE-2026-42307 USN-8304-1
Ubuntu24.04:LTSvim2:9.1.0016-1ubuntu7.14UBUNTU-CVE-2026-42307 USN-8304-1
Ubuntu25.10vim2:9.1.0967-1ubuntu6.5UBUNTU-CVE-2026-42307 USN-8304-1
Ubuntu26.04:LTSvim2:9.1.2141-1ubuntu4.2UBUNTU-CVE-2026-42307 USN-8304-1
UbuntuPro:14.04:LTSvim2:7.4.052-1ubuntu3.1+esm26UBUNTU-CVE-2026-42307 USN-8304-1
UbuntuPro:16.04:LTSvim2:7.4.1689-3ubuntu1.5+esm32UBUNTU-CVE-2026-42307 USN-8304-1
UbuntuPro:18.04:LTSvim2:8.0.1453-1ubuntu1.13+esm17UBUNTU-CVE-2026-42307 USN-8304-1
UbuntuPro:20.04:LTSvim2:8.1.2269-1ubuntu5.32+esm5UBUNTU-CVE-2026-42307 USN-8304-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 3 morevim9.2.0530-150000.5.94.1SUSE-SU-2026:2313-1
SUSELinux Micro Extras 6.2vim9.2.0530-160000.1.1SUSE-SU-2026:21833-1
openSUSETumbleweedvim9.2.0530-1.1openSUSE-SU-2026:11114-1
Alpinev3.23, v3.24vim9.2.0389-r0ALPINE-CVE-2026-42307
Alpaquita23, 25, streamvim9.2.0389-r0BELL-CVE-2026-42307

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability affects Vim’s netrw plugin URL and file handling functionality. Red Hat Product Security has assessed this issue as a Moderate severity vulnerability.

A local attacker may craft malicious filenames or URLs containing shell metacharacters that trigger unintended shell command execution when opened by a victim using affected netrw functionality in Vim. Successful exploitation requires user interaction because the victim must open attacker-controlled content.

Red Hat therefore assessed the Confidentiality and Integrity impacts as Low (C:L/I:L), with no direct Availability impact (A:N).

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10vimFix deferred
Red Hat Enterprise Linux 6vimFix deferred
Red Hat Enterprise Linux 7vimFix deferred
Red Hat Enterprise Linux 8vimFix deferred
Red Hat Enterprise Linux 9vimFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred

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-42307.

Attack patterns (CAPEC)

  • 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