CVE Database›Document archive›CVE-2022-2000

CVE-2022-2000

vim: out-of-bounds write in function append_command

Loading…

Severity

Low

Red Hat Product Security

5.3

CVSS 3.1

Review impact separately from score.

Published · June 9, 2022

Updated · November 21, 2025

Description

An out-of-bounds write vulnerability was found in Vim's append_command() function of the src/ex_docmd.c file. This issue occurs when an error for a command goes over the end of IObuff. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap buffer overflow that causes an application to crash and corrupt memory.

Statement

All versions of Vim shipped with Red Hat Enterprise Linux are not affected, because vulnerable code is not present in our code-base.

Red Hat Product Security has rated this issue as having a Low security impact because the "victim" has to run an untrusted file IN SCRIPT MODE. Someone who is running untrusted files in script mode is equivalent to someone just taking a random python script and running it.

For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

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 · 5.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

CWE-787 · Out-of-bounds Write