# CVE-2021-4187: Use After Free in vim/vim

- Severity: Medium 6.8 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:L/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): 1.76%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-29T17:10:09.000Z
- Modified: 2026-11-02T19:17:46.533Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: @huntrdev

## Description

vim is vulnerable to Use After Free

(As written by CVE List.)

## Affected

- vim vim/vim: from unspecified before 8.2
- vim vim: up to 8.2.3912
- fedoraproject fedora: 34; 35
- apple mac_os_x: 10.15.7
- apple macos: before 12.3; from 11.0 before 11.6.6; 10.15.7

## Every score

- @huntrdev: CVSS:3.0 6.8 Medium `CVSS:3.0/AV:L/AC:L/PR:L/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:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://huntr.dev/bounties/a8bee03a-6e2e-43bf-bee3-4968c5386a2e> (exploit, third-party-advisory)
- <https://github.com/vim/vim/commit/4bf1006cae7e87259ccd5219128c3dba75774441> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2022/01/15/1> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/> (vendor-advisory)
- <https://support.apple.com/kb/HT213183> (release-notes, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Mar/29> (mailing-list, third-party-advisory)
- <https://support.apple.com/kb/HT213256> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/May/35> (mailing-list, third-party-advisory)
- <https://support.apple.com/kb/HT213343> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Jul/14> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202208-32> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html>

## Sources

- CVE List: [CVE-2021-4187](https://www.cve.org/CVERecord?id=CVE-2021-4187), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2021-4187](https://nvd.nist.gov/vuln/detail/CVE-2021-4187), Public domain, modified 2026-11-02

---

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