CVE-2026-43961
JSON

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 packageVersionsReported by
vim vimbefore 9.2.0480CVE List
vimNot 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-mainNot specified
Not affected: from 9.2.967-1.1.hum1 before *
CVE List
rhui5/cds-kubernetes-rhel9Not specified
Not affected: from 1795506874 before *
CVE List
rhui5/cds-rhel9Not specified
Not affected: from 1795506877 before *
CVE List
rhui5/haproxy-rhel9Not specified
Not affected: from 1795454666 before *
CVE List
rhui5/installer-rhel9Not specified
Not affected: from 1795506876 before *
CVE List
rhui5/rhua-rhel9Not specified
Not affected: from 1795506954 before *
CVE List
rhoai/odh-dashboard-rhel9Not specifiedCVE List
openshift/ose-rhel-coreos-8Not specifiedCVE List
openshift/ose-rhel-coreos-9Not specifiedCVE List

Classification

CWE-94

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

SourceRecordLicence
CVE ListCVE-2026-43961 changed 2026-11-24CVE Terms of Use
NVDCVE-2026-43961 changed 2026-11-24Public domain