#VU64506 Out-of-bounds write in Vim


Published: 2022-06-20

Vulnerability identifier: #VU64506

Vulnerability risk: Low

CVSSv3.1: 6.1 [CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-1897

CWE-ID: CWE-787

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
Vim
Client/Desktop applications / Office applications

Vendor: Vim.org

Description

The vulnerability allows a local attacker to execute arbitrary code on the system.

The vulnerability exists due to Illegal memory access and leads to an out-of-bounds write vulnerability in the vim_regsub_both() function. A local attacker can trick the victim into opening a specially crafted file, leading to a system crash or code execution.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Vim:


External links
http://huntr.dev/bounties/82c12151-c283-40cf-aa05-2e39efa89118
http://github.com/vim/vim/commit/338f1fc0ee3ca929387448fe464579d6113fa76a
http://bugzilla.redhat.com/show_bug.cgi?id=2091682


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability