CVE-2021-4019
vim: heap-based buffer overflow in find_help_tags() in help.c
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · November 23, 2021
Updated · July 3, 2026
Description
A flaw was found in vim. A possible heap-based buffer overflow vulnerability allows an attacker to input a specially crafted file, leading to a crash or code execution. The highest threat from this vulnerability is 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.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer