Stack-based buffer overflow in Vim - CVE-2026-26269

 

Stack-based buffer overflow in Vim - CVE-2026-26269

Published: February 16, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the special_keys() function in src/netbeans.c. A remote attacker can trick the victim into opening a specially crafted file that initiates connection with attacker-controlled NetBeans server, trigger a stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

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

How to mitigate CVE-2026-26269

Install updates from vendor's website.

Vim - update to 9.1.2148
vim (Ubuntu package) - addressed in versions 2:7.4.052-1ubuntu3.1+esm23, 2:7.4.1689-3ubuntu1.5+esm29, 2:8.0.1453-1ubuntu1.13+esm14, 2:8.1.2269-1ubuntu5.32+esm2, 2:8.2.3995-1ubuntu2.26, 2:9.1.0016-1ubuntu7.10, 2:9.1.0967-1ubuntu6.1
vim - addressed in versions 9.0-39, 9.0.2092-25
vim-common - addressed in versions 9.0-39, 9.0.2092-25
vim-X11 - addressed in versions 9.0-39, 9.0.2092-25
vim-debuginfo - addressed in versions 9.0-39, 9.0.2092-25
vim-debugsource - addressed in versions 9.0-39, 9.0.2092-25
vim-enhanced - addressed in versions 9.0-39, 9.0.2092-25
vim-minimal - addressed in versions 9.0-39, 9.0.2092-25
vim-filesystem - addressed in versions 9.0-39, 9.0.2092-25
vim-doc - update to 9.0.2092-10
vim-X11 - update to 9.0.2092-10
vim-common - update to 9.0.2092-10
vim-enhanced - update to 9.0.2092-10
vim-minimal - update to 9.0.2092-10
vim-data - update to 9.0.2092-10
vim-filesystem - update to 9.0.2092-10
vim - addressed in versions 9.2.045-1.fc42, 9.2.045-1.fc43
vim-debugsource - addressed in versions 9.2.0110-17.59.1, 9.2.0110-150000.5.86.1, 9.2.0110-150500.20.43.1
gvim - addressed in versions 9.2.0110-17.59.1, 9.2.0110-150000.5.86.1, 9.2.0110-150500.20.43.1
vim-debuginfo - addressed in versions 9.2.0110-17.59.1, 9.2.0110-150000.5.86.1, 9.2.0110-150500.20.43.1
vim - addressed in versions 9.2.0110-17.59.1, 9.2.0110-150000.5.86.1, 9.2.0110-150500.20.43.1
gvim-debuginfo - addressed in versions 9.2.0110-17.59.1, 9.2.0110-150000.5.86.1, 9.2.0110-150500.20.43.1
vim-data-common - addressed in versions 9.2.0110-17.59.1, 9.2.0110-150000.5.86.1, 9.2.0110-150500.20.43.1
vim-data - addressed in versions 9.2.0110-17.59.1, 9.2.0110-150000.5.86.1, 9.2.0110-150500.20.43.1
vim-small-debuginfo - addressed in versions 9.2.0110-150000.5.86.1, 9.2.0110-150500.20.43.1
vim-small - addressed in versions 9.2.0110-150000.5.86.1, 9.2.0110-150500.20.43.1

External References

Related Security Bulletins