CVE-2022-2819
vim: heap buffer overflow in compile_lock_unlock() at src/vim9cmds.c
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 15, 2022
Updated · November 3, 2026
Description
A flaw was found in vim. The vulnerability occurs due to illegal memory access and leads to a heap buffer overflow vulnerability. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution.
Statement
Red Hat Product Security has rated this vulnerability as Low severity. Although successful exploitation could allow arbitrary code execution, the code would execute with the same privileges as the invoking user, greatly limiting the potential impact. Furthermore, the vulnerability can only be triggered by running a script within Vim, which requires explicit user action; greatly reducing the likelihood of accidental exploitation.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Untrusted vim scripts with -s [scriptin] are not recommended to run.
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE-122 · Heap-based Buffer Overflow