Out-of-bounds write in Vim - CVE-2022-2288

 

Out-of-bounds write in Vim - CVE-2022-2288

Published: July 19, 2022


Vulnerability identifier: #VU65406
CSH Severity: Low
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-2022-2288
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Vim
Gentoo Linux
Amazon Linux AMI
Fedora
vim
app-editors/gvim
app-editors/vim
app-editors/vim-core

How to mitigate CVE-2022-2288

Install updates from vendor's website.

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

External References

Related Security Bulletins