Heap-based buffer overflow in Vim - CVE-2025-22134

 

Heap-based buffer overflow in Vim - CVE-2025-22134

Published: January 12, 2025


Vulnerability identifier: #VU102539
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-22134
CWE-ID: CWE-122
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. A remote attacker can trick the victim into opening a specially crafted file, trigger a heap-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 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
Desktop Applications Module
Basesystem Module
openSUSE Leap
openEuler
Ubuntu
Anolis OS
SmartFabric Manager
APEX Cloud Platform for Microsoft Azure
APEX Cloud Platform for Red Hat OpenShift
vim (Ubuntu package)
vim-filesystem
vim-X11
vim-common
vim-enhanced
vim-minimal
vim-data
vim-doc
vim-debugsource
vim-debuginfo
vim
gvim-debuginfo
gvim
vim-data-common
xxd
vim-small
vim-small-debuginfo

How to mitigate CVE-2025-22134

Install updates from vendor's website.

Vim - update to 9.1.1003
SmartFabric Manager - update to 1.3.0
APEX Cloud Platform for Microsoft Azure - update to 01.04.01.00
APEX Cloud Platform for Red Hat OpenShift - update to 03.02.04.00
vim (Ubuntu package) - addressed in versions 2:8.1.2269-1ubuntu5.30, 2:8.2.3995-1ubuntu2.22, 2:9.1.0016-1ubuntu7.6, 2:9.1.0496-1ubuntu6.3
vim-filesystem - update to 9.0.2092-8
vim-X11 - update to 9.0.2092-8
vim-common - update to 9.0.2092-8
vim-enhanced - update to 9.0.2092-8
vim-minimal - update to 9.0.2092-8
vim-data - update to 9.0.2092-8
vim-doc - update to 9.0.2092-8
vim-filesystem - update to 9.0.2092-16
vim-minimal - update to 9.0.2092-16
vim-enhanced - update to 9.0.2092-16
vim-debugsource - update to 9.0.2092-16
vim-debuginfo - update to 9.0.2092-16
vim-common - update to 9.0.2092-16
vim-X11 - update to 9.0.2092-16
vim - update to 9.0.2092-16
vim-debuginfo - addressed in versions 9.1.1101-17.41.1, 9.1.1101-150000.5.69.1, 9.1.1101-150500.20.21.1
gvim-debuginfo - addressed in versions 9.1.1101-17.41.1, 9.1.1101-150500.20.21.1
vim-debugsource - addressed in versions 9.1.1101-17.41.1, 9.1.1101-150000.5.69.1, 9.1.1101-150500.20.21.1
gvim - addressed in versions 9.1.1101-17.41.1, 9.1.1101-150500.20.21.1
vim - addressed in versions 9.1.1101-17.41.1, 9.1.1101-150500.20.21.1
vim-data-common - addressed in versions 9.1.1101-17.41.1, 9.1.1101-150000.5.69.1, 9.1.1101-150500.20.21.1
vim-data - addressed in versions 9.1.1101-17.41.1, 9.1.1101-150500.20.21.1
xxd - update to 9.1.1101-150000.5.69.1
vim-small - addressed in versions 9.1.1101-150000.5.69.1, 9.1.1101-150500.20.21.1
vim-small-debuginfo - addressed in versions 9.1.1101-150000.5.69.1, 9.1.1101-150500.20.21.1

External References

Related Security Bulletins