---
id: CVE-2022-1616
title: >-
  Use after free in append_command in GitHub repository vim/vim prior to
  8.2.4895
summary: >-
  Use after free in append_command in GitHub repository vim/vim prior to
  8.2.4895. This vulnerability is capable of crashing software, Bypass
  Protection Mechanism, Modify Memory, and possible remote execution
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 < 8.2.4895
  - fedora = 34
  - fedora = 35
  - fedora = 36
  - debian_linux = 9.0
  - debian_linux = 10.0
  - macos < 13.0
patched:
  - vim 8.2.4895
  - macos 13.0
published: '2022-05-07'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T22:17:15.220'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-1616'
references:
  - url: 'http://seclists.org/fulldisclosure/2022/Oct/28'
    label: security@huntr.dev
  - url: 'http://seclists.org/fulldisclosure/2022/Oct/41'
    label: security@huntr.dev
  - url: 'https://github.com/vim/vim/commit/d88934406c5375d88f8f1b65331c9f0cab68cc6c'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/40f1d75f-fb2f-4281-b585-a41017f217e2'
    label: security@huntr.dev
  - url: 'https://lists.debian.org/debian-lts-announce/2022/05/msg00022.html'
    label: security@huntr.dev
  - url: 'https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html'
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A6BY5P7ERZS7KXSBCGFCOXLMLGWUUJIH/
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIP7KG7TVS5YF3QREAY2GOGUT3YUBZAI/
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JUN33257RUM4RS2I4GZETKFSAXPETATG/
    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://support.apple.com/kb/HT213488'
    label: security@huntr.dev
  - url: 'http://seclists.org/fulldisclosure/2022/Oct/28'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://seclists.org/fulldisclosure/2022/Oct/41'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/vim/vim/commit/d88934406c5375d88f8f1b65331c9f0cab68cc6c'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/40f1d75f-fb2f-4281-b585-a41017f217e2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2022/05/msg00022.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A6BY5P7ERZS7KXSBCGFCOXLMLGWUUJIH/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIP7KG7TVS5YF3QREAY2GOGUT3YUBZAI/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JUN33257RUM4RS2I4GZETKFSAXPETATG/
    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
  - url: 'https://support.apple.com/kb/HT213488'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.02712
epssPercentile: 0.85561
ingestedAt: '2026-10-08T23:16:47.342Z'
---

## Overview

Use after free in append_command in GitHub repository vim/vim prior to 8.2.4895. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution

## Affected

- `vim < 8.2.4895`
- `fedora = 34`
- `fedora = 35`
- `fedora = 36`
- `debian_linux = 9.0`
- `debian_linux = 10.0`
- `macos < 13.0`

## Remediation

Upgrade past the affected range:

- `vim 8.2.4895`
- `macos 13.0`
