CVE-2026-43961 · HIGH (CVSS 7.8)
Summary: Vim: vimscript injection via unescaped filename in netrw s:netrwmarkfile() filter() expression allows arbitrary code execution
Details
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.
Severity
HIGH (CVSS 7.8) — vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected packages
- GIT github.com/vim/vim [0 – 8af0f098c3a42a28661d0295364e6e0fd7dbc92c]
References
- http://www.openwall.com/lists/oss-security/2026/05/14/7
- https://access.redhat.com/downloads/content/package-browser/
- https://catalog.redhat.com/software/containers/
- https://github.com/vim/vim/
- https://access.redhat.com/errata/RHSA-2026:57614
- https://access.redhat.com/errata/RHSA-2026:98119
- https://access.redhat.com/errata/RHSA-2026:99165
- https://access.redhat.com/errata/RHSA-2026:99166
- https://access.redhat.com/security/cve/CVE-2026-43961
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43961.json
- https://github.com/vim/vim/security/advisories/GHSA-66hr-7p6x-x5j3
- https://nvd.nist.gov/vuln/detail/CVE-2026-43961
- https://bugzilla.redhat.com/show_bug.cgi?id=2460434