# CVE-2026-43961: Vim: vimscript injection via unescaped filename in netrw s:netrwmarkfile() filter() expression allows arbitrary code execution

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-08-19T14:06:09.120Z
- Modified: 2026-11-24T19:18:20.847Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- vim vim: before 9.2.0480
- vim: no versions given (not affected: from 2:9.1.083-26.el10_3 before *; from 2:9.1.083-26.el10_2 before *; from 2:8.0.1763-34.el8_10 before *; from 2:8.2.2637-44.el9_9 before *; from 2:8.2.2637-44.el9_8 before *)
- vim-main: no versions given (not affected: from 9.2.967-1.1.hum1 before *)
- rhui5/cds-kubernetes-rhel9: no versions given (not affected: from 1795506874 before *)
- rhui5/cds-rhel9: no versions given (not affected: from 1795506877 before *)
- rhui5/haproxy-rhel9: no versions given (not affected: from 1795454666 before *)
- rhui5/installer-rhel9: no versions given (not affected: from 1795506876 before *)
- rhui5/rhua-rhel9: no versions given (not affected: from 1795506954 before *)
- rhoai/odh-dashboard-rhel9: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2026:100486> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:100487> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:102947> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:57614> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:98119> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:99165> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:99166> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-43961> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2460434> (issue-tracking)
- <https://github.com/vim/vim/security/advisories/GHSA-66hr-7p6x-x5j3>
- <http://www.openwall.com/lists/oss-security/2026/05/14/7>

## Sources

- CVE List: [CVE-2026-43961](https://www.cve.org/CVERecord?id=CVE-2026-43961), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-43961](https://nvd.nist.gov/vuln/detail/CVE-2026-43961), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-43961 · Whole record: https://cve.day/CVE-2026-43961.json · Rebuilt by cve.day 2026-11-25T22:59:33.923Z
