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

 

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

Published: May 11, 2022


Vulnerability identifier: #VU63041
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-1621
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 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
IBM Qradar SIEM
Amazon Linux AMI
Gentoo Linux
Anolis OS
Red Hat Enterprise Linux for ARM 64
Oracle Linux
Red Hat Enterprise Linux for x86_64
Ubuntu
openEuler
Fedora
macOS
Migration Toolkit for Containers
Red Hat OpenShift Container Platform
Red Hat Advanced Cluster Management for Kubernetes
Red Hat Advanced Cluster Security for Kubernetes
OpenShift Logging
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
Red Hat OpenStack
IBM Cloud Pak for Watson AIOps
OpenShift Virtualization
vim (Ubuntu package)
vim-X11
vim-common
vim-enhanced
vim-minimal
vim-filesystem
vim-debuginfo
vim-debugsource
vim
vim (Red Hat package)
app-editors/vim-core
app-editors/vim
app-editors/gvim

How to mitigate CVE-2022-1621

Install updates from vendor's website.

Vim - update to 8.2.4919
Migration Toolkit for Containers - update to 1.7.3
Red Hat Advanced Cluster Management for Kubernetes - update to 2.5.1
Red Hat Advanced Cluster Security for Kubernetes - update to 3.71
OpenShift Logging - addressed in versions 5.2.13, 5.3.10, 5.4.3
IBM Cloud Pak for Watson AIOps - update to 4.1.1
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 4.6.0
OpenShift Virtualization - update to 4.11.0
Red Hat OpenShift Container Platform - update to 4.11.0
IBM Qradar SIEM - addressed in versions 7.4.3 Fix Pack 8, 7.5.0 Update Pack 4
vim (Ubuntu package) - addressed in versions 2:7.4.16893ubuntu1.5+esm6, 2:8.0.1453-1ubuntu1.9, 2:8.1.2269-1ubuntu5.8, 2:8.1.2269-1ubuntu5.9, 2:8.2.3995-1ubuntu2.1
vim-X11 - update to 8.0.1763-19.0.1
vim-common - update to 8.0.1763-19.0.1
vim-enhanced - update to 8.0.1763-19.0.1
vim-minimal - update to 8.0.1763-19.0.1
vim-filesystem - update to 8.0.1763-19.0.1
vim-debuginfo - update to 8.2-27
vim-filesystem - update to 8.2-27
vim-minimal - update to 8.2-27
vim-enhanced - update to 8.2-27
vim-debugsource - update to 8.2-27
vim-common - update to 8.2-27
vim-X11 - update to 8.2-27
vim - update to 8.2-27
vim (Red Hat package) - update to 8.2.2637-16.el9_0.2
vim - update to 8.2.4927-1.fc34
vim - addressed in versions 8.2.5172-1.1, 9.0.1160-1.1
app-editors/vim-core - addressed in versions 9.0.0060, 9.0.1157
app-editors/vim - addressed in versions 9.0.0060, 9.0.1157
app-editors/gvim - addressed in versions 9.0.0060, 9.0.1157
macOS - update to 13.0 22A380
Red Hat OpenStack - update to 16.2.z

External References

Related Security Bulletins