Vim
Vim: vimscript injection via unescaped filename in netrw s:netrwmarkfile() filter() expression allows arbitrary code execution
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 9.2.0480
Fixed in 9.2.0480
Fixed in 2:9.1.083-26.el10_3
Fixed in 2:9.1.083-26.el10_2
Fixed in 2:8.0.1763-34.el8_10
Fixed in 2:8.0.1763-34.el8_10
Fixed in 2:8.2.2637-44.el9_9
Fixed in 2:8.2.2637-44.el9_9
Fixed in 2:8.2.2637-44.el9_8
Fixed in 9.2.967-1.1.hum1
Mitigation
Upgrade vim to 9.2.0480 or later.
Upgrade Red Hat Enterprise Linux 10 to 2:9.1.083-26.el10_3 or later.
Upgrade Red Hat Enterprise Linux 10.2 Extended Update Support to 2:9.1.083-26.el10_2 or later.
Upgrade Red Hat Enterprise Linux 8 to 2:8.0.1763-34.el8_10 or later.
Upgrade Red Hat Enterprise Linux 8 to 2:8.0.1763-34.el8_10 or later.
Upgrade Red Hat Enterprise Linux 9 to 2:8.2.2637-44.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9 to 2:8.2.2637-44.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9.8 Extended Update Support to 2:8.2.2637-44.el9_8 or later.
Upgrade Red Hat Hardened Images to 9.2.967-1.1.hum1 or later.
Workaround
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.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:100486
- Vendor advisory access.redhat.com/errata/RHSA-2026:100487
- Vendor advisory access.redhat.com/errata/RHSA-2026:57614
4 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:98119
- Vendor advisory access.redhat.com/errata/RHSA-2026:99165
- Vendor advisory access.redhat.com/errata/RHSA-2026:99166
- Vendor advisory github.com/vim/vim/security/advisories/GHSA-66…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.