---
id: CVE-2022-2862
title: Use After Free in vim/vim
summary: Use After Free in GitHub repository vim/vim prior to 9.0.0221.
severity: high
cvss: 7.6
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H'
cvssSource: cna
cwe:
  - CWE-416
vendor: vim
product: vim/vim
affected:
  - vim/vim >= unspecified < 9.0.0221
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-02T21:59:52.606037Z'
published: '2022-08-17'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T21:59:59.092Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-2862'
references:
  - url: 'https://huntr.dev/bounties/71180988-1ab6-4311-bca8-e9a879b06765'
  - url: 'https://github.com/vim/vim/commit/1889f499a4f248cd84e0e0bf6d0d820016774494'
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/
    label: FEDORA-2022-b9edf60581
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: GLSA-202305-16
tags:
  - cve.org
epss: 0.00966
epssPercentile: 0.61921
ingestedAt: '2026-11-05T19:30:42.862Z'
---

## Overview

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

## Affected

- `vim/vim >= unspecified < 9.0.0221`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
