CVE-2021-3984
vim: illegal memory access in find_start_brace() in cindent.c when C-indenting
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · November 18, 2021
Updated · July 3, 2026
Description
A flaw was found in vim. A possible heap-based buffer overflow allows an attacker to input a specially crafted file, leading to a crash or code execution. The highest threat from this vulnerability is confidentiality, integrity, and system availability.
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
Do not run untrusted vim scripts with -s {scriptin} as it is never safe to do so.
CVSS / CWE
CVSS 3.1 · 7.3CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H
CWE-122 · Heap-based Buffer Overflow