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.
{
"cwe_ids": [
"CWE-78"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42307.json"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "9.2.0383"
},
{
"introduced": "0"
},
{
"fixed": "9.2.0383"
}
],
"source": [
"AFFECTED_FIELD",
"CPE_RANGE",
"REFERENCES"
],
"cpe": "cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*"
}[
{
"id": "CVE-2026-42307-4346cf2a",
"signature_version": "v1",
"target": {
"file": "src/version.c"
},
"signature_type": "Line",
"deprecated": false,
"source": "https://github.com/vim/vim/commit/405e2fb6d54d5653523809e2853d99d1c000a5fc",
"digest": {
"threshold": 0.9,
"line_hashes": [
"146200493773228420153804765641940418619",
"42862740760857751000650975369148752555",
"131197672456302197075718528459200242734",
"335256913219156205048575069302923910302"
]
}
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-42307.json"
"2026-06-18T13:36:20Z"