Vim < 9.2.0383 OS Command Injection in netrw (GHSA-85ch-p2qr-m5gx)

medium Nessus Plugin ID 317737

Synopsis

The remote host is missing a security update.

Description

The version of Vim installed on the remote host is prior to 9.2.0383. It is, therefore, affected by a vulnerability as referenced in the GHSA-85ch-p2qr-m5gx advisory.

- An OS command injection vulnerability exists in the netrw standard plugin bundled with Vim. The suffix extraction logic in s:GetTempfile() allows arbitrary characters after the dot in a filename, permitting shell metacharacters to be embedded in the suffix. Since this temporary file name is passed to external commands without proper escaping, an attacker can inject arbitrary shell commands by inducing a user to open a crafted URL. This vulnerability is fixed in 9.2.0383. (CVE-2026-42307)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Vim version 9.2.0383 or later.

See Also

https://github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gx

Plugin Details

Severity: Medium

ID: 317737

File Name: vim_9_2_0383.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 5/29/2026

Updated: 5/29/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.3

CVSS v2

Risk Factor: Low

Base Score: 3.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:N

CVSS Score Source: CVE-2026-42307

CVSS v3

Risk Factor: Medium

Base Score: 4.4

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Vulnerability Information

CPE: cpe:/a:vim:vim

Required KB Items: installed_sw/Vim

Patch Publication Date: 4/21/2026

Vulnerability Publication Date: 4/21/2026

Reference Information

CVE: CVE-2026-42307

IAVA: 2026-A-0516