Out-of-bounds write in Vim - CVE-2022-2288
Published: July 19, 2022
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the system.
The vulnerability exists due to a boundary error in parse_command_modifiers() function at ex_docmd.c:3123. A remote attacker can create a specially crafted file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.
Affected software
Gentoo Linux
Amazon Linux AMI
Fedora
vim
app-editors/gvim
app-editors/vim
app-editors/vim-core
How to mitigate CVE-2022-2288
vim - addressed in versions 9.0.049-1.fc35, 9.0.049-1.fc36
app-editors/gvim - addressed in versions 9.0.0060, 9.0.1157
app-editors/vim - addressed in versions 9.0.0060, 9.0.1157
app-editors/vim-core - addressed in versions 9.0.0060, 9.0.1157
vim - addressed in versions 9.0.475-1.1, 9.0.1160-1.1