Vulnerability · Published May 8, 2026 · Assigned by GitHub_M

CVE-2026-45130Vim: Heap Buffer Overflow in spell file loading

Medium 6.6

In plain English

A medium-severity heap buffer overflow in vim from vim. 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 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

Vim is an open source, command line text editor. Prior to version 9.2.0450, a heap buffer overflow exists in read_compound() in src/spellfile.c when loading a crafted spell file (.spl) with UTF-8 encoding active. An attacker-controlled length field in the spell file's compound section overflows a 32-bit signed integer multiplication, causing a small buffer to be allocated for a write loop that runs many iterations, overflowing the heap. Because the 'spelllang' option can be set from a modeline, a text file modeline can trigger spell file loading if a malicious .spl file has been planted on the runtimepath. This issue has been patched in version 9.2.0450.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23vim9.2.0452-r0ALPINE-CVE-2026-45130
Alpine:v3.24vim9.2.0452-r0ALPINE-CVE-2026-45130
Debian:12vimno fix listedDEBIAN-CVE-2026-45130
Debian:13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-45130
Debian:14vim2:9.2.0461-1DEBIAN-CVE-2026-45130
Ubuntu:22.04:LTSvim2:8.2.3995-1ubuntu2.30USN-8304-1
Ubuntu:22.04:LTSvim2:8.2.3995-1ubuntu2.30UBUNTU-CVE-2026-45130
Ubuntu:24.04:LTSvim2:9.1.0016-1ubuntu7.14USN-8304-1
Ubuntu:24.04:LTSvim2:9.1.0016-1ubuntu7.14UBUNTU-CVE-2026-45130
Ubuntu:25.10vim2:9.1.0967-1ubuntu6.5USN-8304-1
Ubuntu:25.10vim2:9.1.0967-1ubuntu6.5UBUNTU-CVE-2026-45130
Ubuntu:26.04:LTSvim2:9.1.2141-1ubuntu4.2UBUNTU-CVE-2026-45130
Ubuntu:26.04:LTSvim2:9.1.2141-1ubuntu4.2USN-8304-1

Affected products (as reported)

VendorProductVersions
vim vim < 9.2.0450

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

References