CVE-2022-0261
vim: Heap-based buffer overflow in block_insert() in src/ops.c
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · January 18, 2022
Updated · November 21, 2025
Description
A heap based out-of-bounds write flaw was found in vim's ops.c. This flaw allows an attacker to trick a user to open a crafted file triggering an out-of-bounds write. This vulnerability is capable of crashing software, modify memory, and possible code execution.
Statement
Red Hat Enterprise Linux 6 and 7 are not affected because the vulnerable code is not present in our code base.
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-787 · Out-of-bounds Write