Buffer overflow in Vim - CVE-2022-0729
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 when processing files. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger memory corruption 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
macOS
Isolation Segment
VMware Tanzu Application Service for VMs
vim (Ubuntu package)
vim-filesystem
vim-enhanced
vim-common
vim
vim-X11
vim-debuginfo
vim-debugsource
vim-minimal
app-editors/vim-core
app-editors/vim
app-editors/gvim
VMware Tanzu Operations Manager
How to mitigate CVE-2022-0729
vim (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:7.4.16893ubuntu1.5+esm6, 2:8.0.1453-1ubuntu1.13, 2:8.1.2269-1ubuntu5.14, 2:8.2.3995-1ubuntu2.7
VMware Tanzu Operations Manager - update to 3.0.8
vim-filesystem - update to 8.2-21
vim-enhanced - update to 8.2-21
vim-common - update to 8.2-21
vim - update to 8.2-21
vim-X11 - update to 8.2-21
vim-debuginfo - update to 8.2-21
vim-debugsource - update to 8.2-21
vim-minimal - update to 8.2-21
vim - addressed in versions 8.2.4460-1.fc34, 8.2.4460-1.fc35, 8.2.4460-1.fc36
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
- https://huntr.dev/bounties/f3f3d992-7bd6-4ee5-a502-ae0e5f8016ea
- https://github.com/vim/vim/commit/6456fae9ba8e72c74b2c0c499eaf09974604ff30
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HBUYQBZ6GWAWJRWP7AODJ4KHW5BCKDVP/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7ZLEHVP4LNAGER4ZDGUDS5V5YVQD6INF/
- https://lists.debian.org/debian-lts-announce/2022/03/msg00018.html
Related Security Bulletins
- Buffer overflow in Vim
- Amazon Linux AMI update for vim
- Ubuntu update for vim
- Gentoo update for Vim, gVim
- Multiple vulnerabilities in Apple macOS Ventura
- Ubuntu update for vim
- VMware Tanzu products update for Vim
- openEuler update for vim
- Amazon Linux AMI update for vim
- Fedora 36 update for vim
- Fedora 35 update for vim
- Fedora 34 update for vim