# CVE-2022-0213: Heap-based Buffer Overflow in vim/vim

- Severity: Medium 6.8 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/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.35%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-14T00:00:00.000Z
- Modified: 2026-10-08T22:17:14.693Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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
- vim vim: before 8.2
- debian debian_linux: 9.0; 10.0

## Every score

- @huntrdev: CVSS:3.0 6.8 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- NVD: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/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/f3afe1a5-e6f8-4579-b68a-6e5c7e39afed> (exploit, patch, third-party-advisory)
- <https://github.com/vim/vim/commit/de05bb25733c3319e18dca44e9b59c6ee389eb26> (patch, third-party-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/03/msg00018.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202208-32> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html> (mailing-list, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2022-0213 · Whole record: https://cve.day/CVE-2022-0213.json · Rebuilt by cve.day 2026-11-25T22:58:09.246Z
