---
id: CVE-2022-2207
title: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
summary: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-122
vendor: vim
product: vim
affected:
  - vim < 8.2.5162
  - fedora = 35
  - fedora = 36
patched:
  - vim 8.2.5162
published: '2022-06-27'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T21:17:46.860'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-2207'
references:
  - url: 'https://github.com/vim/vim/commit/0971c7a4e537ea120a6bb2195960be8d0815e97b'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/05bc6051-4dc3-483b-ae56-cf23346b97b9'
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GFD2A4YLBR7OIRHTL7CK6YNMEIQ264CN/
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U743FMJGFQ35GBPCQ6OWMVZEJPDFVEWM/
    label: security@huntr.dev
  - url: 'https://security.gentoo.org/glsa/202208-32'
    label: security@huntr.dev
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: security@huntr.dev
  - url: 'https://github.com/vim/vim/commit/0971c7a4e537ea120a6bb2195960be8d0815e97b'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/05bc6051-4dc3-483b-ae56-cf23346b97b9'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GFD2A4YLBR7OIRHTL7CK6YNMEIQ264CN/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U743FMJGFQ35GBPCQ6OWMVZEJPDFVEWM/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202208-32'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-2207.json
  - url: 'https://access.redhat.com/security/cve/CVE-2022-2207'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2102185'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2022-2207'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-2207'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
epss: 0.01404
epssPercentile: 0.72423
ingestedAt: '2026-10-08T22:11:53.754Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-08T20:54:17.010116Z'
---

## Overview

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.

## Affected

- `vim < 8.2.5162`
- `fedora = 35`
- `fedora = 36`

## Remediation

Upgrade past the affected range:

- `vim 8.2.5162`

## Vendor advisories

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