#VU64509 Use-after-free in Vim


Vulnerability identifier: #VU64509

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-1898

CWE-ID: CWE-416

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
Vim
Client/Desktop applications / Software for system administration

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 a use-after-free vulnerability in the find_pattern_in_path() 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: All versions


External links
http://github.com/vim/vim/commit/e2fa213cf571041dbd04ab0329303ffdc980678a
http://huntr.dev/bounties/45aad635-c2f1-47ca-a4f9-db5b25979cea
http://bugzilla.redhat.com/show_bug.cgi?id=2091679


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