Vulnerability · Published Aug 19, 2026 · Assigned by redhat

CVE-2026-43961Vim: vimscript injection via unescaped filename in netrw s:netrwmarkfile() filter() expression allows arbitrary code execution

High 7.8

In plain English

A high-severity code injection in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 94.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23vim9.2.0481-r0ALPINE-CVE-2026-43961
Alpine:v3.24vim9.2.0481-r0ALPINE-CVE-2026-43961
Debian:12vimno fix listedDEBIAN-CVE-2026-43961
Debian:13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-43961
Debian:14vim2:9.2.0524-1DEBIAN-CVE-2026-43961
Ubuntu:22.04:LTSvim2:8.2.3995-1ubuntu2.31UBUNTU-CVE-2026-43961
Ubuntu:24.04:LTSvim2:9.1.0016-1ubuntu7.15UBUNTU-CVE-2026-43961
Ubuntu:25.10vim2:9.1.0967-1ubuntu6.6UBUNTU-CVE-2026-43961
Ubuntu:26.04:LTSvim2:9.1.2141-1ubuntu4.3UBUNTU-CVE-2026-43961

Affected products (as reported)

Weakness: CWE-94 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References