Heap-based buffer overflow in Vim - CVE-2022-0943
Published: April 8, 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. 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
Amazon Linux AMI
Gentoo Linux
Red Hat Enterprise Linux for x86_64
Oracle Linux
Ubuntu
openEuler
Fedora
macOS
vim (Ubuntu package)
vim-filesystem
vim-debugsource
vim-enhanced
vim-minimal
vim-common
vim
vim-X11
vim-debuginfo
vim (Red Hat package)
app-editors/vim-core
app-editors/vim
app-editors/gvim
How to mitigate CVE-2022-0943
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-filesystem - update to 8.2-24
vim-debugsource - update to 8.2-24
vim-enhanced - update to 8.2-24
vim-minimal - update to 8.2-24
vim-common - update to 8.2-24
vim - update to 8.2-24
vim-X11 - update to 8.2-24
vim-debuginfo - update to 8.2-24
vim (Red Hat package) - update to 8.2.2637-16.el9_0.2
vim - addressed in versions 8.2.4621-1.fc34, 8.2.4621-1.fc36, 8.2.4701-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
macOS - update to 13.0 22A380
External References
Related Security Bulletins
- Heap-based buffer overflow in Vim
- Amazon Linux AMI update for vim
- Ubuntu update for vim
- Amazon Linux AMI update for vim
- Red Hat Enterprise Linux 9 update for vim
- Multiple vulnerabilities in Oracle Linux
- Gentoo update for Vim, gVim
- Ubuntu update for vim
- Ubuntu update for vim
- Multiple vulnerabilities in Apple macOS Ventura
- openEuler update for vim
- Amazon Linux AMI update for vim
- Fedora 36 update for vim
- Fedora 34 update for vim
- Fedora 34 update for vim