Heap-based buffer overflow in Vim - CVE-2026-45130

 

Heap-based buffer overflow in Vim - CVE-2026-45130

Published: May 11, 2026


Vulnerability identifier: #VU130925
CSH Severity: Medium
CVSS v4: 7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-45130
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to heap-based buffer overflow in read_compound() in src/spellfile.c when loading a crafted .spl spell file with UTF-8 encoding active. A remote attacker can trick the victim into opening a text file with a crafted modeline or otherwise cause Vim to load a planted spell file to cause a denial of service.

User interaction is required, and exploitation requires a malicious .spl file to be present on the runtimepath while UTF-8 encoding is active.


Affected software

Vim
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Micro for Rancher
SUSE Linux Enterprise Micro
SUSE Linux Micro
SUSE Linux Micro Extras
Ubuntu
openEuler
Anolis OS
vim (Ubuntu package)
vim-minimal
vim-enhanced
vim-debugsource
vim-debuginfo
vim-common
vim-X11
vim
vim-filesystem
vim-data
vim-doc
vim-data-common
vim-small-debuginfo
vim-small
gvim-debuginfo
gvim
xxd-debuginfo
xxd

How to mitigate CVE-2026-45130

Install security update from vendor's website.

Vim - update to 9.2.0450
vim (Ubuntu package) - addressed in versions 2:7.4.052-1ubuntu3.1+esm26, 2:7.4.1689-3ubuntu1.5+esm32, 2:8.0.1453-1ubuntu1.13+esm17, 2:8.1.2269-1ubuntu5.32+esm5, 2:8.2.3995-1ubuntu2.30, 2:9.1.0016-1ubuntu7.14, 2:9.1.0967-1ubuntu6.5, 2:9.1.2141-1ubuntu4.2
vim-minimal - addressed in versions 9.0-47, 9.0.2092-33, 9.0.2092-34
vim-enhanced - addressed in versions 9.0-47, 9.0.2092-33, 9.0.2092-34
vim-debugsource - addressed in versions 9.0-47, 9.0.2092-33, 9.0.2092-34
vim-debuginfo - addressed in versions 9.0-47, 9.0.2092-33, 9.0.2092-34
vim-common - addressed in versions 9.0-47, 9.0.2092-33, 9.0.2092-34
vim-X11 - addressed in versions 9.0-47, 9.0.2092-33, 9.0.2092-34
vim - addressed in versions 9.0-47, 9.0.2092-33, 9.0.2092-34
vim-filesystem - addressed in versions 9.0-47, 9.0.2092-33, 9.0.2092-34
vim-common - update to 9.0.2092-14
vim-X11 - update to 9.0.2092-14
vim-enhanced - update to 9.0.2092-14
vim-minimal - update to 9.0.2092-14
vim-data - update to 9.0.2092-14
vim-doc - update to 9.0.2092-14
vim-filesystem - update to 9.0.2092-14
vim-debugsource - addressed in versions 9.2.0530-slfo.1.1_1.1, 9.2.0530-150000.5.94.1, 9.2.0530-160000.1.1
vim-data-common - addressed in versions 9.2.0530-slfo.1.1_1.1, 9.2.0530-150000.5.94.1, 9.2.0530-160000.1.1
vim-small-debuginfo - addressed in versions 9.2.0530-slfo.1.1_1.1, 9.2.0530-150000.5.94.1, 9.2.0530-160000.1.1
vim-small - addressed in versions 9.2.0530-slfo.1.1_1.1, 9.2.0530-150000.5.94.1, 9.2.0530-160000.1.1
vim-debuginfo - addressed in versions 9.2.0530-slfo.1.1_1.1, 9.2.0530-150000.5.94.1, 9.2.0530-160000.1.1
vim - addressed in versions 9.2.0530-slfo.1.1_1.1, 9.2.0530-150000.5.94.1, 9.2.0530-160000.1.1
vim-data - update to 9.2.0530-150000.5.94.1
gvim-debuginfo - update to 9.2.0530-150000.5.94.1
gvim - update to 9.2.0530-150000.5.94.1
xxd-debuginfo - update to 9.2.0530-160000.1.1
xxd - update to 9.2.0530-160000.1.1

External References

Related Security Bulletins