# CVE-2021-3984: 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-12-01 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-3984, UBUNTU-CVE-2021-3984, DEBIAN-CVE-2021-3984
- Record: https://cvemate.com/vulnerability/CVE-2021-3984 · JSON: https://cvemate.com/vulnerability/CVE-2021-3984/json

## Description

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

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.571%, percentile 76.229%, 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.3650-r0
- debian vim (Debian): \< 2:8.2.3995-1
- ubuntu vim (Ubuntu): \< 2:7.4.052-1ubuntu3.1+esm17 \| \< 2:7.4.1689-3ubuntu1.5+esm4 \| \< 2:8.0.1453-1ubuntu1.8 \| \< 2:8.1.2269-1ubuntu5.6
- debian debian\_linux: 9.0 \| 10.0
- fedoraproject fedora: 34
- vim vim: \< 8.2.3625
- vim vim/vim: ≥ unspecified, \< 8.2.3625

## References

- <https://huntr.dev/bounties/b114b5a2-18e2-49f0-b350-15994d71426a>
- <https://github.com/vim/vim/commit/2de9b7c7c8791da8853a9a7ca9c467867465b655>
- <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://lists.debian.org/debian-lts-announce/2022/03/msg00018.html>
- <https://security.gentoo.org/glsa/202208-32>
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html>
- <https://security.alpinelinux.org/vuln/CVE-2021-3984>
- <https://ubuntu.com/security/CVE-2021-3984>
- <https://ubuntu.com/security/notices/USN-5247-1>
- <https://ubuntu.com/security/notices/USN-5433-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-3984>
- <https://ubuntu.com/security/notices/USN-6965-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-3984>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3984>

---

Data as of 2026-12-05T04:55:29.672Z. 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
