CVE Database›Document archive›CVE-2021-3872

CVE-2021-3872

vim: heap-based buffer overflow in win_redr_status() in drawscreen.c

Loading…

Severity

Low

Red Hat Product Security

6.6

CVSS 3.1

Review impact separately from score.

Published · October 7, 2021

Updated · July 3, 2026

Description

An out-of-bounds write flaw was found in vim's drawscreen.c win_redr_status() function. This flaw allows an attacker to trick a user to open a crafted file with specific arguments in vim, triggering an out-of-bounds write. The highest threat from this vulnerability is to confidentiality, integrity, and system availability.

Statement

This flaw is out of support scope for vim as shipped in Red Hat Enterprise Linux 6 and 7. For more comprehensive information about Red Hat Enterprise Linux support scope, please see https://access.redhat.com/support/policy/updates/errata/

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

Since this flaw requires user interaction, mitigation is to not open files from untrusted sources using vim.

CVSS / CWE

CVSS 3.1 · 6.6
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H

CWE-787 · Out-of-bounds Write