Out-of-bounds write in Vim - CVE-2026-59857

 

Out-of-bounds write in Vim - CVE-2026-59857

Published: June 25, 2026 / Updated: July 15, 2026


Vulnerability identifier: #VU135167
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59857
CWE-ID: CWE-787
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to cause a denial of service.

The vulnerability exists due to out-of-bounds write in the SAL sound-folding logic in spell_soundfold_sal() when processing a boundary-length word through soundfold() with a SAL-based spell language active. A local user can supply a crafted boundary-length word to cause a denial of service.

The vulnerable path is only reached under a non-multibyte 8-bit encoding such as latin1, and spell checking must be enabled with a SAL-based language.


Affected software

Vim
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 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 Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Micro for Rancher
SUSE Linux Enterprise Micro
Ubuntu
Desktop Applications Module
Basesystem Module
openSUSE Leap
openEuler
vim (Ubuntu package)
vim-filesystem
vim
vim-X11
vim-common
vim-debuginfo
vim-debugsource
vim-enhanced
vim-minimal
vim-data-common
vim-data
gvim
gvim-debuginfo
vim-small
vim-small-debuginfo

How to mitigate CVE-2026-59857

Install security update from vendor's website.

Vim - update to 9.2.0725
vim (Ubuntu package) - addressed in versions 2:7.4.052-1ubuntu3.1+esm31, 2:7.4.1689-3ubuntu1.5+esm37, 2:8.0.1453-1ubuntu1.13+esm22, 2:8.1.2269-1ubuntu5.32+esm10, 2:8.2.3995-1ubuntu2.34, 2:9.1.0016-1ubuntu7.18, 2:9.1.2141-1ubuntu4.7
vim-filesystem - update to 9.0-53
vim - update to 9.0-53
vim-X11 - update to 9.0-53
vim-common - update to 9.0-53
vim-debuginfo - update to 9.0-53
vim-debugsource - update to 9.0-53
vim-enhanced - update to 9.0-53
vim-minimal - update to 9.0-53
vim-debuginfo - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-data-common - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-data - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
gvim - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
gvim-debuginfo - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-small - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-debugsource - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-small-debuginfo - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2

External References

Related Security Bulletins