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

- Severity: High 7.3 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/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): 0.65%, higher than 46% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-27T21:00:13.000Z
- Modified: 2026-06-17T04:05:57.653Z
- 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.3564
- vim vim: before 8.2.3564
- fedoraproject fedora: 33; 34; 35
- debian debian_linux: 9.0

## Every score

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

## References

- <https://huntr.dev/bounties/35738a4f-55ce-446c-b836-2fb0b39625f8> (exploit, issue-tracking, patch, third-party-advisory)
- <https://github.com/vim/vim/commit/777e7c21b7627be80961848ac560cb0a9978ff43> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DU26T75PYA3OF7XJGNKMT2ZCQEU4UKP5/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BN4EX7BPQU7RP6PXCNCSDORUZBXQ4JUH/> (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://lists.debian.org/debian-lts-announce/2022/06/msg00014.html> (mailing-list, third-party-advisory)

## Sources

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

---

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