All reports
Low

vim: use-after-free in process_next_cpt_value() at insexpand.c

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-3297

Probability of exploitation in the next 30 days: 0.53%

FIRST EPSS · 2026-11-21

Description

Use After Free in GitHub repository vim/vim prior to 9.0.0579.

A heap use-after-free vulnerability was found in Vim's process_next_cpt_value() function of the src/insexpand.c file. This flaw occurs due to the usage of freed memory when 'tagfunc' wipes out the buffer that holds 'complete.' This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap use-after-free issue that causes an application to crash, possibly executing code and corrupting memory.