CVE-2026-43961
High 7.8No known exploitationFix availableVim: vimscript injection via unescaped filename in netrw s:netrwmarkfile() filter() expression allows arbitrary code execution
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 12% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
A flaw was found in Vim's netrw plugin. A crafted filename containing quote characters and expression fragments can break out of the quoted context during mark/unmark operations, allowing arbitrary Vimscript execution. This can be leveraged to run shell commands with the privileges of the user running Vim.
Weakness: CWE-94
Patching and mitigation
- Patch status
- Fix available (source: CVE record (redhat))
- Fix documented (source date)
- Mitigation
- To mitigate this issue, users should avoid browsing untrusted directories or interacting with files from untrusted sources using Vim's netrw plugin. Exercise caution when opening directories that may contain maliciously crafted filenames. Source (opens in a new tab)
- Vendor guidance
- access.redhat.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 7 | Not documented | Not documented | CVE Program |
| vim | vim | all versions before 9.2.0480 | 9.2.0480 | CVE Program |
| Red Hat | Red Hat Enterprise Linux 10 (unaffected) | 2:9.1.083-26.el10_3 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 10.2 Extended Update Support (unaffected) | 2:9.1.083-26.el10_2 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 6 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 (unaffected) | 2:8.0.1763-34.el8_10 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 (unaffected) | 2:8.0.1763-34.el8_10 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 2:8.2.2637-44.el9_9 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 2:8.2.2637-44.el9_9 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9.8 Extended Update Support (unaffected) | 2:8.2.2637-44.el9_8 | Not documented | CVE Program |
| Red Hat | Red Hat Hardened Images (unaffected) | 9.2.967-1.1.hum1 | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift AI (RHOAI) (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 5 (status unknown) | Not documented | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by redhat
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (redhat)
Vendor guidance and references
- RHSA-2026:100486 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2026:100487 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2026:57614 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2026:98119 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2026:99165 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2026:99166 (opens in a new tab)vendor-advisory, x_refsource_redhat
- http://www.openwall.com/lists/oss-security/2026/05/14/7 (opens in a new tab)
- https://access.redhat.com/security/cve/CVE-2026-43961 (opens in a new tab)vdb-entry, x_refsource_redhat
- RHBZ#2460434 (opens in a new tab)issue-tracking, x_refsource_redhat
- https://github.com/vim/vim/security/advisories/GHSA-66hr-7p6x-x5j3 (opens in a new tab)