CVE-2021-3927
vim: heap-based buffer overflow in gchar_cursor() in misc1.c
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 26, 2021
Updated · July 3, 2026
Description
A flaw was found in vim. A possible heap-based buffer overflow could allow an attacker to input a specially crafted file leading to a crash or code execution. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Statement
This vulnerability can only be exloited if the victim opens a specifically crafter file that will cause the heap to overflow. Considering the mitigations like ASLR available in the Linux kernel and the user interaction required, RH ProdSec has set the Impact of this vulnerability to "Low"
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-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer