Vim < 9.2.0561 Code Injection (GHSA-52mc-rq6p-rc7c)

medium Nessus Plugin ID 321506

Synopsis

The remote host is missing a security update.

Description

The version of Vim installed on the remote host is prior to 9.2.0561. It is, therefore, affected by a vulnerability as referenced in the GHSA-52mc-rq6p-rc7c advisory.

- The Python omni-completion script (python3complete.vim) for Vim with the +python3 interpreter enabled executes import and from statements found in the current buffer through Python's import machinery. Because the buffer's working directory is on sys.path, opening a hostile .py file with a sibling Python package and invoking omni-completion runs that package's top-level code as the editing user, leading to arbitrary code execution. (CVE-2026-52858)

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.0561 or later.

See Also

http://www.nessus.org/u?85302c9c

Plugin Details

Severity: Medium

ID: 321506

File Name: vim_9_2_0561.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 6/18/2026

Updated: 6/18/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 4.6

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

CVSS Score Source: CVE-2026-52858

CVSS v3

Risk Factor: Medium

Base Score: 5.3

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

Vulnerability Information

CPE: cpe:/a:vim:vim

Required KB Items: installed_sw/Vim

Patch Publication Date: 5/31/2026

Vulnerability Publication Date: 5/31/2026

Reference Information

CVE: CVE-2026-52858