CVE-2026-43961Vim: vimscript injection via unescaped filename in netrw s:netrwmarkfile() filter() expression allows arbitrary code execution
- 7.8HighCVSS base score
- 0.16%Exploitation in 30 daysEPSS · top 95% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 4 months later
· 4 months later
Published
- 3 months later
· 3 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVDNVD · Awaiting Analysis | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.16% · top 95% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected < 9.2.0480
Red Hat · Red Hat Enterprise Linux 10.2 Extended Update Support
- unaffected 2:9.1.083-26.el10_2 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 2:8.0.1763-34.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 2:8.0.1763-34.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 9.8 Extended Update Support
- unaffected 2:8.2.2637-44.el9_8 – < *
Red Hat · Red Hat Hardened Images
- unaffected 9.2.967-1.1.hum1 – < *
Red Hat · Red Hat Enterprise Linux 10
All versions: affected
Red Hat · Red Hat Enterprise Linux 6
All versions: unknown
Red Hat · Red Hat Enterprise Linux 7
All versions: affected
Red Hat · Red Hat Enterprise Linux 9
All versions: affected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unknown
Red Hat · Red Hat OpenShift Container Platform 4
All versions: unaffected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: unaffected
Red Hat · Red Hat OpenShift Container Platform 5
All versions: unaffected
What to do
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
References8
- RHSA-2026:57614 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:98119 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:99165 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:99166 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-43961 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2460434 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://github.com/vim/vim/security/advisories/GHSA-66hr-7p6x-x5j3 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2026/05/14/7 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-62411 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-43961)Record last updated .