#VU64505 Out-of-bounds read in Vim


Published: 2022-06-20

Vulnerability identifier: #VU64505

Vulnerability risk: Low

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

CVE-ID: CVE-2022-1851

CWE-ID: CWE-125

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
Vim
Client/Desktop applications / Office applications

Vendor: Vim.org

Description

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

The vulnerability exists due to illegal memory access and leads to an out-of-bounds read vulnerability in the gchar_cursor() 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://github.com/vim/vim/commit/78d52883e10d71f23ab72a3d8b9733b00da8c9ad
http://huntr.dev/bounties/f8af901a-9a46-440d-942a-8f815b59394d
http://bugzilla.redhat.com/show_bug.cgi?id=2091676


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