Stack-based buffer overflow in Vim - CVE-2022-0408
Published: February 22, 2022
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when looking for spell suggestions. A remote unauthenticated attacker can trick the victim to open a specially crafted file, 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
Amazon Linux AMI
Gentoo Linux
Ubuntu
openEuler
Fedora
Isolation Segment
VMware Tanzu Application Service for VMs
Tanzu Greenplum for Kubernetes
vim (Ubuntu package)
vim-common
vim-filesystem
vim-X11
vim-minimal
vim-debuginfo
vim-enhanced
vim-debugsource
vim
app-editors/vim-core
app-editors/vim
app-editors/gvim
VMware Tanzu Operations Manager
How to mitigate CVE-2022-0408
Tanzu Greenplum for Kubernetes - update to 2.0.0
vim (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:7.4.16893ubuntu1.5+esm5, 2:8.0.1453-1ubuntu1.13, 2:8.1.2269-1ubuntu5.14, 2:8.2.3995-1ubuntu2.7
VMware Tanzu Operations Manager - addressed in versions 2.9.41, 2.10.43, 3.0.8
vim-common - update to 8.2-16
vim-filesystem - update to 8.2-16
vim-X11 - update to 8.2-16
vim-minimal - update to 8.2-16
vim-debuginfo - update to 8.2-16
vim-enhanced - update to 8.2-16
vim-debugsource - update to 8.2-16
vim - update to 8.2-16
vim - addressed in versions 8.2.4314-1.fc34, 8.2.4314-1.fc35, 8.2.4386-1.fc34, 8.2.4428-1.fc34, 8.2.4460-1.fc34
app-editors/vim-core - update to 9.0.0060
app-editors/vim - update to 9.0.0060
app-editors/gvim - update to 9.0.0060
vim - update to 9.0.1160-1.1
External References
Related Security Bulletins
- Multiple vulnerabilities in Vim
- Amazon Linux AMI update for vim
- Ubuntu update for vim
- VMware Tanzu products update for Vim
- Gentoo update for Vim, gVim
- Ubuntu update for vim
- VMware Tanzu products update for Vim
- openEuler update for vim
- Amazon Linux AMI update for vim
- Fedora 35 update for vim
- Fedora 34 update for vim
- Fedora 34 update for vim
- Fedora 34 update for vim
- Fedora 34 update for vim