# CVE-2021-3927: 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-05 · Modified: 2026-10-08
- Aliases: ALPINE-CVE-2021-3927, UBUNTU-CVE-2021-3927, DEBIAN-CVE-2021-3927
- Record: https://cvemate.com/vulnerability/CVE-2021-3927 · JSON: https://cvemate.com/vulnerability/CVE-2021-3927/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.708%, percentile 78.124%, 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+esm4 \| \< 2:7.4.1689-3ubuntu1.5+esm3 \| \< 2:8.0.1453-1ubuntu1.7 \| \< 2:8.1.2269-1ubuntu5.4 \| \< 2:8.2.3565-1ubuntu2
- debian debian\_linux: 9.0 \| 10.0
- fedoraproject fedora: 33 \| 34 \| 35
- vim vim: \< 8.2.3581
- vim vim/vim: ≥ unspecified, \< 8.2.3581

## References

- <https://huntr.dev/bounties/9c2b2c82-48bb-4be9-ab8f-a48ea252d1b0>
- <https://github.com/vim/vim/commit/0b5b06cb4777d1401fdf83e7d48d287662236e7e>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PGW56Z6IN4UVM3E5RXXF4G7LGGTRBI5C/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BCQWPEY2AEYBELCMJYHYWYCD3PZVD2H7/>
- <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-3927>
- <https://ubuntu.com/security/CVE-2021-3927>
- <https://ubuntu.com/security/notices/USN-5147-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-3927>
- <https://security-tracker.debian.org/tracker/CVE-2021-3927>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3927>

---

Data as of 2026-12-05T06:22:01.340Z. 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
