---
id: CVE-2022-0351
title: >-
  Access of Memory Location Before Start of Buffer in GitHub repository vim/vim
  prior to 8.2.
summary: >-
  Access of Memory Location Before Start of Buffer in GitHub repository vim/vim
  prior to 8.2.
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-786
  - CWE-119
vendor: vim
product: vim
affected:
  - vim < 8.2
  - debian_linux = 9.0
  - debian_linux = 10.0
  - macos < 12.6
patched:
  - vim 8.2
  - macos 12.6
published: '2022-01-25'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T21:17:43.390'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-0351'
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: 'http://seclists.org/fulldisclosure/2022/Oct/43'
    label: security@huntr.dev
  - url: 'https://github.com/vim/vim/commit/fe6fb267e6ee5c5da2f41889e4e0e0ac5bf4b89d'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/8b36db58-b65c-4298-be7f-40b9e37fd161'
    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://security.gentoo.org/glsa/202208-32'
    label: security@huntr.dev
  - url: 'https://support.apple.com/kb/HT213444'
    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: 'http://seclists.org/fulldisclosure/2022/Oct/43'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/vim/vim/commit/fe6fb267e6ee5c5da2f41889e4e0e0ac5bf4b89d'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/8b36db58-b65c-4298-be7f-40b9e37fd161'
    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://security.gentoo.org/glsa/202208-32'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://support.apple.com/kb/HT213444'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://support.apple.com/kb/HT213488'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00609
epssPercentile: 0.47482
ingestedAt: '2026-10-08T22:11:53.745Z'
---

## Overview

Access of Memory Location Before Start of Buffer in GitHub repository vim/vim prior to 8.2.

## Affected

- `vim < 8.2`
- `debian_linux = 9.0`
- `debian_linux = 10.0`
- `macos < 12.6`

## Remediation

Upgrade past the affected range:

- `vim 8.2`
- `macos 12.6`
