---
id: CVE-2022-3591
title: Use After Free in GitHub repository vim/vim prior to 9.0.0789.
summary: Use After Free in GitHub repository vim/vim prior to 9.0.0789.
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: neovim
product: neovim
affected:
  - 'neovim >= 0.1.0, < 0.9.0'
  - vim < 9.0.0789
patched:
  - neovim 0.9.0
  - vim 9.0.0789
published: '2022-12-02'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T15:38:23.437'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-3591'
references:
  - url: 'https://github.com/vim/vim/commit/8f3c3c6cd044e3b5bf08dbfa3b3f04bb3f711bad'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/a5a998c2-4b07-47a7-91be-dbc1886b3921'
    label: security@huntr.dev
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: security@huntr.dev
  - url: 'https://github.com/vim/vim/commit/8f3c3c6cd044e3b5bf08dbfa3b3f04bb3f711bad'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/a5a998c2-4b07-47a7-91be-dbc1886b3921'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00394
epssPercentile: 0.33404
ingestedAt: '2026-09-24T15:45:56.611Z'
---

## Overview

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

## Affected

- `neovim >= 0.1.0, < 0.9.0`
- `vim < 9.0.0789`

## Remediation

Upgrade past the affected range:

- `neovim 0.9.0`
- `vim 9.0.0789`
