---
id: CVE-2022-2345
title: Use After Free in GitHub repository vim/vim prior to 9.0.0046.
summary: Use After Free in GitHub repository vim/vim prior to 9.0.0046.
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-416
  - CWE-416
vendor: vim
product: vim
affected:
  - vim < 9.0.0046
  - fedora = 35
patched:
  - vim 9.0.0046
published: '2022-07-08'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T21:17:48.243'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-2345'
references:
  - url: 'https://github.com/vim/vim/commit/32acf1f1a72ebb9d8942b9c9d80023bf1bb668ea'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/1eed7009-db6d-487b-bc41-8f2fd260483f'
    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/32acf1f1a72ebb9d8942b9c9d80023bf1bb668ea'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/1eed7009-db6d-487b-bc41-8f2fd260483f'
    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.01276
epssPercentile: 0.69063
ingestedAt: '2026-10-08T22:11:53.757Z'
---

## Overview

Use After Free in GitHub repository vim/vim prior to 9.0.0046.

## Affected

- `vim < 9.0.0046`
- `fedora = 35`

## Remediation

Upgrade past the affected range:

- `vim 9.0.0046`
