CVE Database›Document archive›CVE-2021-3974

CVE-2021-3974

vim: Use after free in regexp_nfa.c

Loading…

Severity

Low

Red Hat Product Security

2.9

CVSS 3.1

Review impact separately from score.

Published · November 19, 2021

Updated · October 9, 2026

Description

A flaw was found in vim. A possible use-after-free vulnerability 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 system availability.

Statement

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, which is a huge security risk to begin with.

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

CWE-416 · Use After Free