---
id: CVE-2022-3297
title: Use After Free in GitHub repository vim/vim prior to 9.0.0579.
summary: Use After Free in GitHub repository vim/vim prior to 9.0.0579.
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.5.0, < 0.10.0'
  - vim < 9.0.0579
  - fedora = 35
  - fedora = 36
  - fedora = 37
patched:
  - neovim 0.10.0
  - vim 9.0.0579
published: '2022-09-25'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T15:38:08.260'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-3297'
references:
  - url: 'https://github.com/vim/vim/commit/0ff01835a40f549c5c4a550502f62a2ac9ac447c'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/1aa9ec92-0355-4710-bf85-5bce9effa01c'
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4QI7AETXBHPC7SGA77Q7O5IEGULWYET7/
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GTBVD4J2SKVSWK4VBN5JP5OEVK6GDS3N/
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSSEWQLK55MCNT4Z2IIJEJYEI5HLCODI/
    label: security@huntr.dev
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: security@huntr.dev
  - url: 'https://github.com/vim/vim/commit/0ff01835a40f549c5c4a550502f62a2ac9ac447c'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/1aa9ec92-0355-4710-bf85-5bce9effa01c'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4QI7AETXBHPC7SGA77Q7O5IEGULWYET7/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GTBVD4J2SKVSWK4VBN5JP5OEVK6GDS3N/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSSEWQLK55MCNT4Z2IIJEJYEI5HLCODI/
    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-3297.json
  - url: 'https://access.redhat.com/security/cve/CVE-2022-3297'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2129838'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2022-3297'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-3297'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.00527
epssPercentile: 0.42166
ingestedAt: '2026-09-24T15:45:56.608Z'
---

## Overview

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

## Affected

- `neovim >= 0.5.0, < 0.10.0`
- `vim < 9.0.0579`
- `fedora = 35`
- `fedora = 36`
- `fedora = 37`

## Remediation

Upgrade past the affected range:

- `neovim 0.10.0`
- `vim 9.0.0579`

## Vendor advisories

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