CVE-2021-3974
published 2021-11-19CVE-2021-3974: Use After Free in vim/vim vim is vulnerable to Use After Free
high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
1.27%
66.3th percentile
Use After Free in vim/vim
vim is vulnerable to Use After Free
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:8.2.3995-1 (bookworm) | vim 2:8.2.3995-1 (bookworm) |
| msrc | cbl2_vim_8.2.4081-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_vim_8.2.3668-1_on_cbl_mariner_1.0 | — | — |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.8 | 2:8.0.1453-1ubuntu1.8 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.6 | 2:8.1.2269-1ubuntu5.6 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm17 | 2:7.4.052-1ubuntu3.1+esm17 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm4 | 2:7.4.1689-3ubuntu1.5+esm4 |
| vim | vim_vim | >= unspecified < 8.2.3612 | 8.2.3612 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.07.3HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
cvelistv57.8HIGH
osv7.8HIGH
vendor_debian7.8LOW
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2024-08-21·CVSS 7.8
CVE-2021-3974 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that vim incorrectly handled parsing of filenames in its
search functionality. If a user was tricked into opening a specially
crafted file, an attacker could crash the application, leading to a denial
of service. (CVE-2021-3973)
It was discovered that vim incorrectly handled memory when opening and
searching the contents of certain files. If a user was tricked into opening
a specially crafted file, an attacker could crash the application, leading
to a denial of service, or possibly achieve code execution with user
privileges. (CVE-2021-3974)
It was discovered that vim incorrectly handled memory when opening and
editing certain files. If a user was tricked into opening a specially
crafted fi
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2022-05-23·CVSS 7.8
CVE-2022-0261 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim incorrectly handled parsing of filenames in its
search functionality. If a user were tricked into opening a specially crafted
file, an attacker could crash the application, leading to a denial of
service. (CVE-2021-3973)
It was discovered that Vim incorrectly handled memory when opening and
searching the contents of certain files. If a user were tricked into opening
a specially crafted file, an attacker could crash the application, leading to
a denial of service, or possibly achieve code execution with user privileges.
(CVE-2021-3974)
It was discovered that Vim incorrectly handled memory when opening and editing
certain files. If a user were tricked into opening a specially crafted
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2022-01-27·CVSS 7.8
CVE-2021-3974 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that vim incorrectly handled parsing of filenames in its
search functionality. If a user was tricked into opening a specially crafted
file, an attacker could crash the application, leading to a denial of
service. This issue only affected Ubuntu 21.10. (CVE-2021-3973)
It was discovered that vim incorrectly handled memory when opening and
searching the contents of certain files. If a user was tricked into opening
a specially crafted file, an attacker could crash the application, leading to
a denial of service, or possibly achieve code execution with user privileges.
This issue only affected Ubuntu 20.04 LTS and Ubuntu 21.10. (CVE-2021-3974)
It was discovered that vim incorrectly handled memor
Red Hat
vim: Use after free in regexp_nfa.c
vendor_redhat·2021-11-19·CVSS 7.8
CVE-2021-3974 [HIGH] CWE-416 vim: Use after free in regexp_nfa.c
vim: Use after free in regexp_nfa.c
vim is vulnerable to Use After Free
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.
Mitigation: Do not run untrusted vim scripts with -s {scriptin} as it is never safe to do so.
Package: rhacm2/openshift-hive-rhel8 (Red Hat Advanced Cluster Management for Kubernetes 2) - Not affected
Package: vim (Red Hat Enterprise Linux 6) - Out of support scope
Package: vim (Red Hat E
Microsoft
Use After Free in vim/vim
vendor_msrc·2021-11-09·CVSS 7.8
CVE-2021-3974 [HIGH] CWE-416 Use After Free in vim/vim
Use After Free in vim/vim
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
@huntrdev: @huntrdev
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft.com/en-us/a
Debian
CVE-2021-3974: vim - vim is vulnerable to Use After Free
vendor_debian·2021·CVSS 7.8
CVE-2021-3974 [HIGH] CVE-2021-3974: vim - vim is vulnerable to Use After Free
vim is vulnerable to Use After Free
Scope: local
bookworm: resolved (fixed in 2:8.2.3995-1)
bullseye: open
forky: resolved (fixed in 2:8.2.3995-1)
sid: resolved (fixed in 2:8.2.3995-1)
trixie: resolved (fixed in 2:8.2.3995-1)
OSV
vim vulnerabilities
osv·2024-08-21·CVSS 7.8
CVE-2021-3973 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that vim incorrectly handled parsing of filenames in its
search functionality. If a user was tricked into opening a specially
crafted file, an attacker could crash the application, leading to a denial
of service. (CVE-2021-3973)
It was discovered that vim incorrectly handled memory when opening and
searching the contents of certain files. If a user was tricked into opening
a specially crafted file, an attacker could crash the application, leading
to a denial of service, or possibly achieve code execution with user
privileges. (CVE-2021-3974)
It was discovered that vim incorrectly handled memory when opening and
editing certain files. If a user was tricked into opening a specially
crafted file, an attacker could crash the application, leading to a de
OSV
vim vulnerabilities
osv·2022-05-23·CVSS 7.8
CVE-2021-3973 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim incorrectly handled parsing of filenames in its
search functionality. If a user were tricked into opening a specially crafted
file, an attacker could crash the application, leading to a denial of
service. (CVE-2021-3973)
It was discovered that Vim incorrectly handled memory when opening and
searching the contents of certain files. If a user were tricked into opening
a specially crafted file, an attacker could crash the application, leading to
a denial of service, or possibly achieve code execution with user privileges.
(CVE-2021-3974)
It was discovered that Vim incorrectly handled memory when opening and editing
certain files. If a user were tricked into opening a specially crafted file,
an attacker could crash the application, leading to a
OSV
vim vulnerabilities
osv·2022-01-27·CVSS 7.8
CVE-2021-3973 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that vim incorrectly handled parsing of filenames in its
search functionality. If a user was tricked into opening a specially crafted
file, an attacker could crash the application, leading to a denial of
service. This issue only affected Ubuntu 21.10. (CVE-2021-3973)
It was discovered that vim incorrectly handled memory when opening and
searching the contents of certain files. If a user was tricked into opening
a specially crafted file, an attacker could crash the application, leading to
a denial of service, or possibly achieve code execution with user privileges.
This issue only affected Ubuntu 20.04 LTS and Ubuntu 21.10. (CVE-2021-3974)
It was discovered that vim incorrectly handled memory when opening and editing
certain files. If a user was tric
CVEList
Use After Free in vim/vim
cvelistv5·2021-11-19·CVSS 7.8
CVE-2021-3974 [HIGH] CWE-416 Use After Free in vim/vim
Use After Free in vim/vim
vim is vulnerable to Use After Free
No detection rules found.
No public exploits indexed.
2021-11-19
Published