CVE-2026-43961
Received Received - Intake

Vim netrw Plugin Quote Character Escape Vulnerability Leading to Arbitrary Code Execution

Vulnerability report for CVE-2026-43961, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-19

Last updated on: 2026-08-19

Assigner: redhat-SADP

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-19
Last Modified
2026-08-19
Generated
2026-08-19
AI Q&A
2026-08-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
vim vim to 9.2.0480 (exc)
vim vim to 9.2.0480 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a Vimscript code injection flaw in Vim's netrw plugin. A crafted filename containing quote characters can break out of quoted contexts during mark/unmark operations, allowing arbitrary Vimscript execution. This can lead to shell command execution with the privileges of the user running Vim.

Detection Guidance

To detect this vulnerability, check your Vim version with `vim --version` and compare it against version 9.2.0480 or later. If using a package manager like dnf or apt, run `dnf list installed vim` or `apt list --installed | grep vim` to verify the installed version.

Impact Analysis

If exploited, this vulnerability allows an attacker to run arbitrary shell commands on your system with your user privileges. This could lead to data theft, system compromise, or further network attacks. Exploitation requires you to browse a directory containing a malicious filename and interact with it using netrw's mark/unmark features.

Compliance Impact

This vulnerability could lead to unauthorized access, data breaches, or system compromise, which may violate GDPR (data protection), HIPAA (health data security), or other compliance requirements. Organizations must mitigate this risk to maintain compliance, as exploitation could result in unauthorized data exposure or system control.

Mitigation Strategies

Avoid browsing untrusted directories or interacting with files from untrusted sources using netrw. Do not mark or unmark files with suspicious filenames. Update Vim to version 9.2.0480 or later if available. If no patch exists, disable the netrw plugin by adding `let g:loaded_netrw = 1` and `let g:loaded_netrwPlugin = 1` to your .vimrc file.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-43961. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart