CVE-2026-42307: Vim: OS Command Injection in netrw

Published May 8, 2026
·
Updated

Last updated 13 May 2026

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
vim Vim<9.2.0383
vim Vim<9.2.0383
debian/vim<=2:8.2.2434-3+deb11u1, <=2:8.2.2434-3+deb11u3, <=2:9.0.1378-2+deb12u2, <=2:9.1.1230-2
2:9.2.0461-12:9.2.0524-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/vim to a version that resolves this vulnerability.

    Fixed in 2:9.2.0461-1Fixed in 2:9.2.0524-1
  2. Upgrade

    Upgrade Vim (netrw standard plugin) to a version that resolves this vulnerability.

    Fixed in 9.2.0383

Event History

May 8, 2026
CVE Published
via MITRE·10:38 PM
Data Sourced
via MITRE·10:38 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 25, 2026
Data Sourced
via Ubuntu·10:06 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·10:08 PM
DescriptionAffected Software
Data Sourced
via Launchpad·10:08 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-42307?

CVE-2026-42307 is considered a high severity OS command injection vulnerability in Vim's netrw plugin.

2

How do I fix CVE-2026-42307?

To mitigate CVE-2026-42307, users should upgrade to Vim version 9.2.0383 or later.

3

What causes CVE-2026-42307?

CVE-2026-42307 is caused by improper handling of user-supplied URLs in the netrw plugin, leading to potential OS command injection.

4

Which versions of Vim are affected by CVE-2026-42307?

CVE-2026-42307 affects all Vim versions prior to 9.2.0383.

5

Is CVE-2026-42307 a remote exploitation risk?

Yes, CVE-2026-42307 can be exploited remotely by tricking a user into opening a malicious URL.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203