CVE-2021-3872
7.8 HIGHvim is vulnerable to Heap-based Buffer Overflow
Published: 2021-10-19 · Last updated: 2026-06-17
Severity and scoring
- CVSS
- 7.8 HIGH
- Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CWE
- CWE-122, CWE-787
Affected products
| Vendor | Product |
|---|---|
| debian | debian_linux, fedora, vim |
| fedoraproject | debian_linux, fedora, vim |
| vim | debian_linux, fedora, vim |
Description
vim is vulnerable to Heap-based Buffer Overflow
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2021-3872
- [Patch]https://github.com/vim/vim/commit/826bfe4bbd7594188e3d74d2539d9707b1c6a14b
- [Patch]https://huntr.dev/bounties/c958013b-1c09-4939-92ca-92f50aa169e8
- [Other]https://lists.debian.org/debian-lts-announce/2022/03/msg00018.html
- [Other]https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7K4JJBIH3OQSZRVTWKCJCDLGMFGQ5DOH/
- [Other]https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S42L4Z4DTW4LHLQ4FJ33VEOXRCBE7WN4/
- [Other]https://security.gentoo.org/glsa/202208-32
- [Patch]https://github.com/vim/vim/commit/826bfe4bbd7594188e3d74d2539d9707b1c6a14b
- [Patch]https://huntr.dev/bounties/c958013b-1c09-4939-92ca-92f50aa169e8
- [Other]https://lists.debian.org/debian-lts-announce/2022/03/msg00018.html
- [Other]https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html
- [Other]https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7K4JJBIH3OQSZRVTWKCJCDLGMFGQ5DOH/
- [Other]https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S42L4Z4DTW4LHLQ4FJ33VEOXRCBE7WN4/
- [Other]https://security.gentoo.org/glsa/202208-32
Related CVEs
Same vendor
- CVE-2026-52860 — Vim is an open source, command line text editor (7.8 HIGH)
- CVE-2026-52859 — Vim is an open source, command line text editor (8.2 HIGH)
- CVE-2026-52858 — Vim is an open source, command line text editor (7.8 HIGH)
- CVE-2026-47167 — Vim is an open source, command line text editor (5.3 MEDIUM)
- CVE-2026-47162 — Vim is an open source, command line text editor (8.8 HIGH)
Same CWE
- CVE-2026-47750 — stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inf... (7.8 HIGH)
- CVE-2026-47747 — stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inf... (7.8 HIGH)
- CVE-2026-47964 — DNG SDK versions 1.7.1 2536 and earlier are affected by a Heap-based Buffer Overflow vulnerability that could result in arbitrary code ex... (7.8 HIGH)
- CVE-2026-47749 — stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inf... (7.8 HIGH)
- CVE-2026-12314 — Memory safety bug fixed in Thunderbird 152 (7.5 HIGH)