Heap-based buffer overflow in Vim - CVE-2022-0407

 

Heap-based buffer overflow in Vim - CVE-2022-0407

Published: February 22, 2022


Vulnerability identifier: #VU60782
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-0407
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 to open a specially crafted file, trigger 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
Amazon Linux AMI
Gentoo Linux
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Desktop
openSUSE Leap
Ubuntu
Dell EMC PowerProtect Data Protection
Dell Data Protection Central
Watson CP4D Data Stores
EMC Cloud Tiering Appliance
VMware Tanzu Application Service for VMs
Isolation Segment
Dell Secure Connect Gateway
VMware Tanzu Operations Manager
Dell EMC Storage Monitoring and Reporting (SMR)
EMC ViPR SRM
Dell EMC VxRail Appliance
vim-nox (Ubuntu package)
vim-gtk3 (Ubuntu package)
vim-tiny (Ubuntu package)
vim (Ubuntu package)
xxd (Ubuntu package)
vim-athena (Ubuntu package)
gvim-debuginfo
gvim
vim
vim-debuginfo
vim-debugsource
vim-small
vim-small-debuginfo
vim-data
vim-data-common
app-editors/gvim
app-editors/vim
app-editors/vim-core

How to mitigate CVE-2022-0407

Install updates from vendor's website.

Vim - update to 8.2.4219
VMware Tanzu Operations Manager - update to 3.0.14
Dell EMC Storage Monitoring and Reporting (SMR) - update to 4.9.0.0
EMC ViPR SRM - update to 4.9.0.0
Watson CP4D Data Stores - update to 5.0.3
Dell Secure Connect Gateway - update to 5.14.00.16
Dell EMC VxRail Appliance - addressed in versions 7.0.372, 8.0.000
vim-nox (Ubuntu package) - update to 2:8.2.3995-1ubuntu2.9
vim-gtk3 (Ubuntu package) - update to 2:8.2.3995-1ubuntu2.9
vim-tiny (Ubuntu package) - update to 2:8.2.3995-1ubuntu2.9
vim (Ubuntu package) - update to 2:8.2.3995-1ubuntu2.9
xxd (Ubuntu package) - update to 2:8.2.3995-1ubuntu2.9
vim-athena (Ubuntu package) - update to 2:8.2.3995-1ubuntu2.9
gvim-debuginfo - addressed in versions 8.2.5038-150000.5.21.1, 9.0.0814-17.9.1
gvim - addressed in versions 8.2.5038-150000.5.21.1, 9.0.0814-17.9.1
vim - addressed in versions 8.2.5038-150000.5.21.1, 9.0.0814-17.9.1
vim-debuginfo - addressed in versions 8.2.5038-150000.5.21.1, 9.0.0814-17.9.1
vim-debugsource - addressed in versions 8.2.5038-150000.5.21.1, 9.0.0814-17.9.1
vim-small - update to 8.2.5038-150000.5.21.1
vim-small-debuginfo - update to 8.2.5038-150000.5.21.1
vim-data - addressed in versions 8.2.5038-150000.5.21.1, 9.0.0814-17.9.1
vim-data-common - addressed in versions 8.2.5038-150000.5.21.1, 9.0.0814-17.9.1
app-editors/gvim - update to 9.0.0060
app-editors/vim - update to 9.0.0060
app-editors/vim-core - update to 9.0.0060
vim - update to 9.0.1160-1.1
EMC Cloud Tiering Appliance - update to 13.1.0.2.29

External References

Related Security Bulletins