CVE-2021-3872
published 2021-10-19CVE-2021-3872: Heap-based Buffer Overflow in vim/vim vim is vulnerable to Heap-based Buffer Overflow
high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
1.39%
68.9th percentile
Heap-based Buffer Overflow in vim/vim
vim is vulnerable to Heap-based Buffer Overflow
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:8.2.3565-1 (bookworm) | vim 2:8.2.3565-1 (bookworm) |
| msrc | cm1_vim_8.2.3564-2_on_cbl_mariner_1.0 | — | — |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.7 | 2:8.0.1453-1ubuntu1.7 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.4 | 2:8.1.2269-1ubuntu5.4 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm4 | 2:7.4.052-1ubuntu3.1+esm4 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm3 | 2:7.4.1689-3ubuntu1.5+esm3 |
| vim | vim_vim | >= unspecified < 8.2.3487 | 8.2.3487 |
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.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
cvelistv57.8HIGH
osv5.5MEDIUM
vendor_debian7.8HIGH
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu5.5MEDIUM
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·2021-11-15·CVSS 5.5
CVE-2021-3928 [MEDIUM] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim incorrectly handled permissions on the .swp
file. A local attacker could possibly use this issue to obtain sensitive
information. This issue only affected Ubuntu 14.04 ESM. (CVE-2017-17087)
It was discovered that Vim incorrectly handled restricted mode. A local
attacker could possibly use this issue to bypass restricted mode and
execute arbitrary commands. Note: This update only makes executing shell
commands more difficult. Restricted mode should not be considered a
complete security measure. This issue only affected Ubuntu 14.04 ESM.
(CVE-2019-20807)
Brian Carpenter discovered that vim incorrectly handled memory
when opening certain files. If a user was tricked into opening
a spe
Microsoft
Heap-based Buffer Overflow in vim/vim
vendor_msrc·2021-10-12·CVSS 7.8
CVE-2021-3872 [HIGH] CWE-122 Heap-based Buffer Overflow in vim/vim
Heap-based Buffer Overflow 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
Red Hat
vim: heap-based buffer overflow in win_redr_status() in drawscreen.c
vendor_redhat·2021-10-07·CVSS 7.8
CVE-2021-3872 [HIGH] CWE-787 vim: heap-based buffer overflow in win_redr_status() in drawscreen.c
vim: heap-based buffer overflow in win_redr_status() in drawscreen.c
vim is vulnerable to Heap-based Buffer Overflow
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/
Mitigation: Since this flaw requires user interaction, mitigation is to not open files from untrusted so
Debian
CVE-2021-3872: vim - vim is vulnerable to Heap-based Buffer Overflow
vendor_debian·2021·CVSS 7.8
CVE-2021-3872 [HIGH] CVE-2021-3872: vim - vim is vulnerable to Heap-based Buffer Overflow
vim is vulnerable to Heap-based Buffer Overflow
Scope: local
bookworm: resolved (fixed in 2:8.2.3565-1)
bullseye: resolved (fixed in 2:8.2.2434-3+deb11u2)
forky: resolved (fixed in 2:8.2.3565-1)
sid: resolved (fixed in 2:8.2.3565-1)
trixie: resolved (fixed in 2:8.2.3565-1)
OSV
vim vulnerabilities
osv·2021-11-15·CVSS 5.5
CVE-2017-17087 [MEDIUM] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim incorrectly handled permissions on the .swp
file. A local attacker could possibly use this issue to obtain sensitive
information. This issue only affected Ubuntu 14.04 ESM. (CVE-2017-17087)
It was discovered that Vim incorrectly handled restricted mode. A local
attacker could possibly use this issue to bypass restricted mode and
execute arbitrary commands. Note: This update only makes executing shell
commands more difficult. Restricted mode should not be considered a
complete security measure. This issue only affected Ubuntu 14.04 ESM.
(CVE-2019-20807)
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
appli
CVEList
Heap-based Buffer Overflow in vim/vim
cvelistv5·2021-10-19·CVSS 7.8
CVE-2021-3872 [HIGH] CWE-122 Heap-based Buffer Overflow in vim/vim
Heap-based Buffer Overflow in vim/vim
vim is vulnerable to Heap-based Buffer Overflow
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2021-10-19
Published