CVE-2021-3875
published 2021-10-15CVE-2021-3875: Heap-based Buffer Overflow in vim/vim vim is vulnerable to Heap-based Buffer Overflow
medium5.5CVSS 3.1
AVLACLPRNUIRSUCNINAH
EPSS
1.44%
69.9th percentile
Heap-based Buffer Overflow in vim/vim
vim is vulnerable to Heap-based Buffer Overflow
Affected
3 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_vim | >= unspecified < 8.2.3489 | 8.2.3489 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
cvelistv55.5MEDIUM
vendor_debian5.5MEDIUM
vendor_msrc5.5MEDIUM
vendor_redhat5.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.
CVEList
Heap-based Buffer Overflow in vim/vim
cvelistv5·2021-10-15·CVSS 5.5
CVE-2021-3875 [MEDIUM] CWE-122 Heap-based Buffer Overflow in vim/vim
Heap-based Buffer Overflow in vim/vim
vim is vulnerable to Heap-based Buffer Overflow
Microsoft
Heap-based Buffer Overflow in vim/vim
vendor_msrc·2021-10-12·CVSS 5.5
CVE-2021-3875 [MEDIUM] 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
vendor_redhat·2021-10-05·CVSS 5.5
CVE-2021-3875 [MEDIUM] CWE-125 vim: heap-based buffer overflow
vim: heap-based buffer overflow
vim is vulnerable to Heap-based Buffer Overflow
There's an out-of-bounds read flaw in Vim's ex_docmd.c. An attacker who is capable of tricking a user into opening a specially crafted file could trigger an out-of-bounds read on a memmove operation, potentially causing an impact to application availability.
Statement: This flaw does not affect vim as shipped in any versions of Red Hat Enterprise Linux because it was introduced in a newer version than those shipped.
Package: rhacm2/openshift-hive-rhel8 (Red Hat Advanced Cluster Management for Kubernetes 2) - Not affected
Package: vim (Red Hat Enterprise Linux 6) - Not affected
Package: vim (Red Hat Enterprise Linux 7) - Not affected
Package: vim (Red Hat Enterprise Linux 8) - Not affected
Package: vim (
Debian
CVE-2021-3875: vim - vim is vulnerable to Heap-based Buffer Overflow
vendor_debian·2021·CVSS 5.5
CVE-2021-3875 [MEDIUM] CVE-2021-3875: 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
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)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2021-10-15
Published