7.8high
Vim: vimscript injection via unescaped filename in netrw s:netrwmarkfile() filter() expression allows arbitrary code execution
- Severity
- 7.8high CVSS:3.1 by redhat
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| vim vim | before 9.2.0480 | CVE List |
| vim | Not specified 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 * | CVE List |
| vim-main | Not specified Not affected: from 9.2.967-1.1.hum1 before * | CVE List |
| rhui5/cds-kubernetes-rhel9 | Not specified Not affected: from 1795506874 before * | CVE List |
| rhui5/cds-rhel9 | Not specified Not affected: from 1795506877 before * | CVE List |
| rhui5/haproxy-rhel9 | Not specified Not affected: from 1795454666 before * | CVE List |
| rhui5/installer-rhel9 | Not specified Not affected: from 1795506876 before * | CVE List |
| rhui5/rhua-rhel9 | Not specified Not affected: from 1795506954 before * | CVE List |
| rhoai/odh-dashboard-rhel9 | Not specified | CVE List |
| openshift/ose-rhel-coreos-8 | Not specified | CVE List |
| openshift/ose-rhel-coreos-9 | Not specified | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Se encontró un fallo en el plugin netrw de Vim. Un nombre de archivo manipulado que contiene caracteres de comillas y fragmentos de expresión puede escapar del contexto entre comillas durante las operaciones de marcar/desmarcar, permitiendo la ejecución arbitraria de Vimscript. Esto puede ser aprovechado para ejecutar comandos de shell con los privilegios del usuario que ejecuta Vim.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43961 changed 2026-11-24 | CVE Terms of Use |
| NVD | CVE-2026-43961 changed 2026-11-24 | Public domain |