# CVE-2021-3968: 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-11-19 · Modified: 2026-10-08
- Aliases: ALPINE-CVE-2021-3968, UBUNTU-CVE-2021-3968, DEBIAN-CVE-2021-3968
- Record: https://cvemate.com/vulnerability/CVE-2021-3968 · JSON: https://cvemate.com/vulnerability/CVE-2021-3968/json

## Description

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

## Signals

- CVSS: 8.5 high (v2.0, NVD) AV:N/AC:M/Au:S/C:C/I:C/A:C
- EPSS: 2.25%, percentile 83.496%, 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.3430, \< 8.2.3650-r0
- debian vim (Debian): \< 2:8.2.3995-1
- ubuntu vim (Ubuntu): \< 2:8.2.3995-1ubuntu2.1
- fedoraproject fedora: 34 \| 35
- vim vim: ≥ 8.2.3430, \< 8.2.3610
- vim vim/vim: ≥ unspecified, \< 8.2.3610

## References

- <https://huntr.dev/bounties/00d62924-a7b4-4a61-ba29-acab2eaa1528>
- <https://github.com/vim/vim/commit/a062006b9de0b2947ab5fb376c6e67ef92a8cd69>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IH2LS2DXBTYOCWGAKFMBF3HTWWXPBEFL/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNXY7T5OORA7UJIMGSJBGHFMU6UZWS6P/>
- <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-3968>
- <https://ubuntu.com/security/CVE-2021-3968>
- <https://www.cve.org/CVERecord?id=CVE-2021-3968>
- <https://security-tracker.debian.org/tracker/CVE-2021-3968>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3968>

---

Data as of 2026-12-05T08:49:48.408Z. 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
