---
id: CVE-2022-2344
title: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0045.
summary: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0045.
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
  - CWE-787
vendor: vim
product: vim
affected:
  - vim < 9.0.0045
  - fedora = 35
patched:
  - vim 9.0.0045
published: '2022-07-08'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T21:17:48.097'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-2344'
references:
  - url: 'https://github.com/vim/vim/commit/baefde14550231f6468ac2ed2ed495bc381c0c92'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/4a095ed9-3125-464a-b656-c31b437e1996'
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/43Y3VJPOTTY3NTREDIFUPITM2POG4ZLP/
    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/baefde14550231f6468ac2ed2ed495bc381c0c92'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/4a095ed9-3125-464a-b656-c31b437e1996'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/43Y3VJPOTTY3NTREDIFUPITM2POG4ZLP/
    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
tags:
  - nvd
epss: 0.01295
epssPercentile: 0.69456
ingestedAt: '2026-10-08T22:11:53.757Z'
---

## Overview

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

## Affected

- `vim < 9.0.0045`
- `fedora = 35`

## Remediation

Upgrade past the affected range:

- `vim 9.0.0045`
