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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-01-14 · Modified: 2026-10-08
- Aliases: ALPINE-CVE-2022-0213, UBUNTU-CVE-2022-0213, DEBIAN-CVE-2022-0213
- Record: https://cvemate.com/vulnerability/CVE-2022-0213 · JSON: https://cvemate.com/vulnerability/CVE-2022-0213/json

## Description

```text
vim is vulnerable to Heap-based Buffer Overflow
```

## Signals

- CVSS: 6.8 medium (v3.0, CVE.org) CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- EPSS: 1.347%, percentile 72.391%, 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.4173-r0
- debian vim (Debian): \< 2:8.2.4659-1
- ubuntu vim (Ubuntu): \< 2:7.4.052-1ubuntu3.1+esm9 \| \< 2:7.4.1689-3ubuntu1.5+esm5 \| \< 2:8.0.1453-1ubuntu1.13 \| \< 2:8.1.2269-1ubuntu5.14 \| \< 2:8.2.3995-1ubuntu2.7
- debian debian\_linux: 9.0 \| 10.0
- vim vim: \< 8.2
- vim vim/vim: ≥ unspecified, \< 8.2

## References

- <https://huntr.dev/bounties/f3afe1a5-e6f8-4579-b68a-6e5c7e39afed>
- <https://github.com/vim/vim/commit/de05bb25733c3319e18dca44e9b59c6ee389eb26>
- <http://www.openwall.com/lists/oss-security/2022/01/15/1>
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00018.html>
- <https://security.gentoo.org/glsa/202208-32>
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html>
- <https://security.alpinelinux.org/vuln/CVE-2022-0213>
- <https://ubuntu.com/security/CVE-2022-0213>
- <https://ubuntu.com/security/notices/USN-5458-1>
- <https://ubuntu.com/security/notices/USN-6026-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-0213>
- <https://security-tracker.debian.org/tracker/CVE-2022-0213>

---

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