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

- Severity: High 7.8 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.55%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-15T13:40:20.000Z
- Modified: 2026-06-17T04:05:55.810Z
- Weaknesses: CWE-122, CWE-787
- Assigned by: @huntrdev

## Description

vim is vulnerable to Heap-based Buffer Overflow

(As written by CVE List.)

## Affected

- vim vim/vim: from unspecified before 8.2.3489
- vim vim: before 8.2.3489
- fedoraproject fedora: 33; 35

## Every score

- @huntrdev: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://huntr.dev/bounties/5cdbc168-6ba1-4bc2-ba6c-28be12166a53> (exploit, third-party-advisory)
- <https://github.com/vim/vim/commit/35a319b77f897744eec1155b736e9372c9c5575f> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S42L4Z4DTW4LHLQ4FJ33VEOXRCBE7WN4/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7K4JJBIH3OQSZRVTWKCJCDLGMFGQ5DOH/> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2022/01/15/1> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202208-32> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-3875](https://www.cve.org/CVERecord?id=CVE-2021-3875), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3875](https://nvd.nist.gov/vuln/detail/CVE-2021-3875), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3875 · Whole record: https://cve.day/CVE-2021-3875.json · Rebuilt by cve.day 2026-11-25T22:58:04.510Z
