# CVE-2021-3903: 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-10-27 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-3903, RHSA-2024:9405, UBUNTU-CVE-2021-3903, DEBIAN-CVE-2021-3903
- Record: https://cvemate.com/vulnerability/CVE-2021-3903 · JSON: https://cvemate.com/vulnerability/CVE-2021-3903/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:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.651%, percentile 52.623%, 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.3567-r0
- debian vim (Debian): \< 2:8.2.3565-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
- fedoraproject fedora: 33 \| 34 \| 35
- redhat vim (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-common (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-common-debuginfo (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-debuginfo (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-debugsource (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-enhanced (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-enhanced-debuginfo (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-filesystem (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-minimal (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-minimal-debuginfo (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-X11 (Red Hat): \< 2:8.2.2637-21.el9
- redhat vim-X11-debuginfo (Red Hat): \< 2:8.2.2637-21.el9
- vim vim: \< 8.2.3564
- vim vim/vim: ≥ unspecified, \< 8.2.3564

## References

- <https://huntr.dev/bounties/35738a4f-55ce-446c-b836-2fb0b39625f8>
- <https://github.com/vim/vim/commit/777e7c21b7627be80961848ac560cb0a9978ff43>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DU26T75PYA3OF7XJGNKMT2ZCQEU4UKP5/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BN4EX7BPQU7RP6PXCNCSDORUZBXQ4JUH/>
- <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/06/msg00014.html>
- <https://security.alpinelinux.org/vuln/CVE-2021-3903>
- <https://access.redhat.com/errata/RHSA-2024:9405>
- <https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.5_release_notes/index>
- <https://access.redhat.com/security/updates/classification/#low>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2018558>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_9405.json>
- <https://access.redhat.com/security/cve/CVE-2021-3903>
- <https://www.cve.org/CVERecord?id=CVE-2021-3903>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3903>
- <https://ubuntu.com/security/CVE-2021-3903>
- <https://ubuntu.com/security/notices/USN-5147-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-3903>

---

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