---
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
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
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-3591.json
  - url: 'https://access.redhat.com/security/cve/CVE-2022-3591'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2150925'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2022-3591'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-3591'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.00388
epssPercentile: 0.32743
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`

## Vendor advisories

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