---
id: CVE-2022-0213
title: vim is vulnerable to Heap-based Buffer Overflow
summary: vim is vulnerable to Heap-based Buffer Overflow
severity: medium
cvss: 6.6
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H'
cwe:
  - CWE-122
  - CWE-787
  - CWE-125
vendor: vim
product: vim
affected:
  - vim < 8.2
  - debian_linux = 9.0
  - debian_linux = 10.0
patched:
  - vim 8.2
published: '2022-01-14'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T22:17:14.693'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-0213'
references:
  - url: 'http://www.openwall.com/lists/oss-security/2022/01/15/1'
    label: security@huntr.dev
  - url: 'https://github.com/vim/vim/commit/de05bb25733c3319e18dca44e9b59c6ee389eb26'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/f3afe1a5-e6f8-4579-b68a-6e5c7e39afed'
    label: security@huntr.dev
  - url: 'https://lists.debian.org/debian-lts-announce/2022/03/msg00018.html'
    label: security@huntr.dev
  - url: 'https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html'
    label: security@huntr.dev
  - url: 'https://security.gentoo.org/glsa/202208-32'
    label: security@huntr.dev
  - url: 'http://www.openwall.com/lists/oss-security/2022/01/15/1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/vim/vim/commit/de05bb25733c3319e18dca44e9b59c6ee389eb26'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/f3afe1a5-e6f8-4579-b68a-6e5c7e39afed'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2022/03/msg00018.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202208-32'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-0213.json
  - url: 'https://access.redhat.com/security/cve/CVE-2022-0213'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2043779'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2022-0213'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-0213'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.01242
epssPercentile: 0.68306
ingestedAt: '2026-10-08T23:16:47.328Z'
---

## Overview

vim is vulnerable to Heap-based Buffer Overflow

## Affected

- `vim < 8.2`
- `debian_linux = 9.0`
- `debian_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `vim 8.2`

## Vendor advisories

- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 9 · updated 2026-10-09 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-0213.json)
