Double Free in Vim - CVE-2021-4173

 

Double Free in Vim - CVE-2021-4173

Published: February 22, 2022


Vulnerability identifier: #VU60792
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-2021-4173
CWE-ID: CWE-415
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 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

Vim
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-4173

Install updates from vendor's website.

Vim - update to 8.2.3902
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

Related Security Bulletins