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

- Severity: High 8.0 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/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): 2.25%, higher than 84% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-19T11:40:12.000Z
- Modified: 2026-10-08T22:17:11.893Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.3610
- vim vim: from 8.2.3430 before 8.2.3610
- fedoraproject fedora: 34; 35

## Every score

- @huntrdev: CVSS:3.0 8.0 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 8.5 High `AV:N/AC:M/Au:S/C:C/I:C/A:C`

## References

- <https://huntr.dev/bounties/00d62924-a7b4-4a61-ba29-acab2eaa1528> (exploit, issue-tracking, patch, third-party-advisory)
- <https://github.com/vim/vim/commit/a062006b9de0b2947ab5fb376c6e67ef92a8cd69> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IH2LS2DXBTYOCWGAKFMBF3HTWWXPBEFL/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNXY7T5OORA7UJIMGSJBGHFMU6UZWS6P/> (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-3968](https://www.cve.org/CVERecord?id=CVE-2021-3968), CVE Terms of Use, modified 2026-10-08
- NVD: [CVE-2021-3968](https://nvd.nist.gov/vuln/detail/CVE-2021-3968), Public domain, modified 2026-10-08

---

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