Vim < 9.2.0450 Heap Buffer Overflow (GHSA-q4jv-r9gj-6cwv)

medium Nessus Plugin ID 314672

Synopsis

The remote host is missing a security update.

Description

The version of Vim installed on the remote host is prior to 9.2.0450. It is, therefore, affected by a vulnerability as referenced in the GHSA-q4jv-r9gj-6cwv advisory.

- An integer overflow in the `read_compound()` function within `src/spellfile.c` produces a heap buffer overflow when processing malicious spell files (`.spl`) with UTF-8 encoding enabled. The attacker-controlled `sectionlen` field of an `SN_COMPOUND` section triggers a 32-bit signed integer wraparound during buffer size calculation, allocating a 27-byte buffer that receives approximately 1 billion bytes. Activation occurs through modeline settings in unrelated text files. (CVE-2026-45130)

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

See Also

http://www.nessus.org/u?0440c754

Plugin Details

Severity: Medium

ID: 314672

File Name: vim_9_2_0450.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 5/14/2026

Updated: 5/14/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.5

CVSS v2

Risk Factor: Medium

Base Score: 5.9

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

CVSS Score Source: CVE-2026-45130

CVSS v3

Risk Factor: Medium

Base Score: 6.6

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

Vulnerability Information

CPE: cpe:/a:vim:vim

Required KB Items: installed_sw/Vim

Patch Publication Date: 5/7/2026

Vulnerability Publication Date: 5/7/2026

Reference Information

CVE: CVE-2026-45130