# CVE-2021-3875: Heap-based Buffer Overflow in vim/vim

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-10-15 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-3875, UBUNTU-CVE-2021-3875, DEBIAN-CVE-2021-3875
- Record: https://cvemate.com/vulnerability/CVE-2021-3875 · JSON: https://cvemate.com/vulnerability/CVE-2021-3875/json

## Description

```text
vim is vulnerable to Heap-based Buffer Overflow
```

## Signals

- CVSS: 7.8 high (v3.0, CVE.org) CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.549%, percentile 75.926%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- alpine vim (Alpine Linux): \< 8.2.3500-r0
- debian vim (Debian): \< 2:8.2.3565-1
- ubuntu vim (Ubuntu): \< 2:8.2.3565-1ubuntu2
- fedoraproject fedora: 33 \| 35
- vim vim: \< 8.2.3489
- vim vim/vim: ≥ unspecified, \< 8.2.3489

## References

- <https://huntr.dev/bounties/5cdbc168-6ba1-4bc2-ba6c-28be12166a53>
- <https://github.com/vim/vim/commit/35a319b77f897744eec1155b736e9372c9c5575f>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S42L4Z4DTW4LHLQ4FJ33VEOXRCBE7WN4/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7K4JJBIH3OQSZRVTWKCJCDLGMFGQ5DOH/>
- <http://www.openwall.com/lists/oss-security/2022/01/15/1>
- <https://security.gentoo.org/glsa/202208-32>
- <https://security.alpinelinux.org/vuln/CVE-2021-3875>
- <https://ubuntu.com/security/CVE-2021-3875>
- <https://huntr.dev/bounties/5cdbc168-6ba1-4bc2-ba6c-28be12166a53/>
- <https://www.cve.org/CVERecord?id=CVE-2021-3875>
- <https://security-tracker.debian.org/tracker/CVE-2021-3875>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3875>

---

Data as of 2026-12-05T08:49:43.041Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
