# CVE-2021-4019: 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: 2025-11-03
- Aliases: ALPINE-CVE-2021-4019, MGASA-2021-0545, UBUNTU-CVE-2021-4019, DEBIAN-CVE-2021-4019
- Record: https://cvemate.com/vulnerability/CVE-2021-4019 · JSON: https://cvemate.com/vulnerability/CVE-2021-4019/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.927%, percentile 80.67%, 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.3779-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 \| 11.0
- fedoraproject fedora: 34 \| 35
- mageia vim (Mageia): \< 8.2.3717-1.mga8
- neovim neovim: \< 0.7.0
- vim vim: \< 8.2.3669
- vim vim/vim: ≥ unspecified, \< 8.2.3669

## References

- <https://huntr.dev/bounties/d8798584-a6c9-4619-b18f-001b9a6fca92>
- <https://github.com/vim/vim/commit/bd228fd097b41a798f90944b5d1245eddd484142>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DRPAI5JVZLI7WHWSBR6NWAPBQAYUQREW/>
- <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://lists.debian.org/debian-lts-announce/2025/03/msg00023.html>
- <https://security.alpinelinux.org/vuln/CVE-2021-4019>
- <https://advisories.mageia.org/MGASA-2021-0545.html>
- <https://bugs.mageia.org/show_bug.cgi?id=29730>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/DRPAI5JVZLI7WHWSBR6NWAPBQAYUQREW/>
- <https://ubuntu.com/security/CVE-2021-4019>
- <https://ubuntu.com/security/notices/USN-5247-1>
- <https://ubuntu.com/security/notices/USN-5433-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-4019>
- <https://ubuntu.com/security/notices/USN-6965-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-4019>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4019>

---

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