{"id":"CVE-2026-42307","state":"PUBLISHED","title":"Vim: OS Command Injection in netrw","description":"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.","publishedAt":"2026-05-08T22:38:53.964Z","updatedAt":"2026-05-13T17:46:32.207Z","severity":{"score":4.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["vim vim"],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.2.0383","status":"affected"}]}],"references":["https://github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gx","https://github.com/vim/vim/commit/405e2fb6d54d5653523809e2853d99d1c000a5fc","https://github.com/vim/vim/releases/tag/v9.2.0383"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/42xxx/CVE-2026-42307.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-42307","state":"PUBLISHED","datePublished":"2026-05-08T22:38:53.964Z","dateUpdated":"2026-05-13T17:46:32.207Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-26T12:37:18.169Z"},"containers":{"cna":{"title":"Vim: OS Command Injection in netrw","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.2.0383","status":"affected"}]}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gx","name":"https://github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/commit/405e2fb6d54d5653523809e2853d99d1c000a5fc","name":"https://github.com/vim/vim/commit/405e2fb6d54d5653523809e2853d99d1c000a5fc","tags":["x_refsource_MISC"]},{"url":"https://github.com/vim/vim/releases/tag/v9.2.0383","name":"https://github.com/vim/vim/releases/tag/v9.2.0383","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":4.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-05-08T22:38:53.964Z"},"source":{"advisory":"GHSA-85ch-p2qr-m5gx","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-13T17:24:20.482558Z","id":"CVE-2026-42307","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-13T17:46:32.207Z"}}]}}}