---
id: CVE-2022-2849
title: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0220.
summary: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0220.
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 < 9.0.0220
  - fedora = 37
patched:
  - vim 9.0.0220
published: '2022-08-17'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T14:17:08.977'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-2849'
references:
  - url: 'https://github.com/vim/vim/commit/f6d39c31d2177549a986d170e192d8351bd571e2'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/389aeccd-deb9-49ae-9b6a-24c12d79b02e'
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/
    label: security@huntr.dev
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: security@huntr.dev
  - url: 'https://github.com/vim/vim/commit/f6d39c31d2177549a986d170e192d8351bd571e2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/389aeccd-deb9-49ae-9b6a-24c12d79b02e'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00477
epssPercentile: 0.39242
ingestedAt: '2026-10-09T15:00:31.348Z'
---

## Overview

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

## Affected

- `vim < 9.0.0220`
- `fedora = 37`

## Remediation

Upgrade past the affected range:

- `vim 9.0.0220`
