CVE-2021-3796
published 2021-09-15CVE-2021-3796: Use After Free in vim/vim vim is vulnerable to Use After Free
high7.3CVSS 3.1
AVLACLPRNUIRSUCHILAH
EPSS
1.63%
73.2th percentile
Use After Free in vim/vim
vim is vulnerable to Use After Free
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:8.2.3455-1 (bookworm) | vim 2:8.2.3455-1 (bookworm) |
| msrc | cm1_vim_8.2.3441-1_on_cbl_mariner_1.0 | — | — |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.6 | 2:8.0.1453-1ubuntu1.6 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.3 | 2:8.1.2269-1ubuntu5.3 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm3 | 2:7.4.052-1ubuntu3.1+esm3 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm2 | 2:7.4.1689-3ubuntu1.5+esm2 |
| vim | vim_vim | unspecified – 8.2.3428 | — |
CVSS provenance
nvdv3.17.3HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H
nvdv3.08.2HIGHCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
cvelistv57.3HIGH
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_debian7.3HIGH
vendor_msrc7.3HIGH
vendor_redhat7.3HIGH
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.
OSV
vim vulnerabilities
osv·2021-09-28·CVSS 7.8
CVE-2021-3770 [HIGH] vim vulnerabilities
vim vulnerabilities
Brian Carpenter discovered that vim incorrectly handled memory
when opening certain files. If a user was tricked into opening
a specially crafted file, a remote attacker could crash the
application, leading to a denial of service, or possibly execute
arbitrary code with user privileges. This issue only affected
Ubuntu 20.04 LTS and Ubuntu 21.04. (CVE-2021-3770)
Brian Carpenter discovered that vim incorrectly handled memory
when opening certain files. If a user was tricked into opening
a specially crafted file, a remote attacker could crash the
application, leading to a denial of service, or possibly execute
arbitrary code with user privileges. (CVE-2021-3778)
Dhiraj Mishra discovered that vim incorrectly handled memory
when opening certain files. If a user was tricke
CVEList
Use After Free in vim/vim
cvelistv5·2021-09-15·CVSS 7.3
CVE-2021-3796 [HIGH] CWE-416 Use After Free in vim/vim
Use After Free in vim/vim
vim is vulnerable to Use After Free
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2021-09-28·CVSS 7.8
CVE-2021-3796 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
Brian Carpenter discovered that vim incorrectly handled memory
when opening certain files. If a user was tricked into opening
a specially crafted file, a remote attacker could crash the
application, leading to a denial of service, or possibly execute
arbitrary code with user privileges. This issue only affected
Ubuntu 20.04 LTS and Ubuntu 21.04. (CVE-2021-3770)
Brian Carpenter discovered that vim incorrectly handled memory
when opening certain files. If a user was tricked into opening
a specially crafted file, a remote attacker could crash the
application, leading to a denial of service, or possibly execute
arbitrary code with user privileges. (CVE-2021-3778)
Dhiraj Mishra discovered that vim incorrectly han
Microsoft
Use After Free in vim/vim
vendor_msrc·2021-09-14·CVSS 7.3
CVE-2021-3796 [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
Red Hat
vim: use-after-free in nv_replace() in normal.c
vendor_redhat·2021-09-11·CVSS 7.3
CVE-2021-3796 [HIGH] CWE-416 vim: use-after-free in nv_replace() in normal.c
vim: use-after-free in nv_replace() in normal.c
vim is vulnerable to Use After Free
A use-after-free vulnerability in vim could allow an attacker to input a specially crafted file leading to memory corruption and a potentially exploitable crash or code execution. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
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 Enterprise Linux 7) - Out of support scope
Package: vim (Red Hat Enterprise Linux 9) - Not affected
Debian
CVE-2021-3796: vim - vim is vulnerable to Use After Free
vendor_debian·2021·CVSS 7.3
CVE-2021-3796 [HIGH] CVE-2021-3796: vim - vim is vulnerable to Use After Free
vim is vulnerable to Use After Free
Scope: local
bookworm: resolved (fixed in 2:8.2.3455-1)
bullseye: resolved (fixed in 2:8.2.2434-3+deb11u1)
forky: resolved (fixed in 2:8.2.3455-1)
sid: resolved (fixed in 2:8.2.3455-1)
trixie: resolved (fixed in 2:8.2.3455-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2021-09-15
Published