Double Free in Vim - CVE-2021-4187
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. A remote attacker can trick the victim to open a specially crafted file, trigger double free error 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
macOS
Fedora
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
vim
app-editors/gvim
app-editors/vim
app-editors/vim-core
How to mitigate CVE-2021-4187
macOS - addressed in versions 10.15.7 19H2026, 11.6.6 20G624, 12.3 21E230
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.0.1
vim - addressed in versions 8.2.4006-1.fc34, 8.2.4006-1.fc35, 8.2.4068-1.fc34
vim - addressed in versions 8.2.4006-1.1, 9.0.1160-1.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
External References
- https://github.com/vim/vim/commit/4bf1006cae7e87259ccd5219128c3dba75774441
- https://huntr.dev/bounties/a8bee03a-6e2e-43bf-bee3-4968c5386a2e
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/
- http://www.openwall.com/lists/oss-security/2022/01/15/1
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/
Related Security Bulletins
- Multiple vulnerabilities in Vim
- Multiple vulnerabilities in Apple macOS Monterey
- Multiple vulnerabilities in Apple macOS Big Sur
- Multiple vulnerabilities in macOS Catalina
- Gentoo update for Vim, gVim
- Amazon Linux AMI update for vim
- Amazon Linux AMI update for vim
- Multiple vulnerabilities in IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
- Fedora 35 update for vim
- Fedora 34 update for vim
- Fedora 34 update for vim