---
id: CVE-2021-3973
title: vim is vulnerable to Heap-based Buffer Overflow
summary: vim is vulnerable to Heap-based Buffer Overflow
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-122
  - CWE-787
vendor: vim
product: vim
affected:
  - vim < 8.2.3611
  - fedora = 34
  - fedora = 35
  - debian_linux = 9.0
patched:
  - vim 8.2.3611
published: '2021-11-19'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T22:17:12.067'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2021-3973'
references:
  - url: 'http://www.openwall.com/lists/oss-security/2022/01/15/1'
    label: security@huntr.dev
  - url: 'https://github.com/vim/vim/commit/615ddd5342b50a6878a907062aa471740bd9a847'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/ce6e8609-77c6-4e17-b9fc-a2e5abed052e'
    label: security@huntr.dev
  - url: 'https://lists.debian.org/debian-lts-announce/2022/03/msg00018.html'
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNXY7T5OORA7UJIMGSJBGHFMU6UZWS6P/
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IH2LS2DXBTYOCWGAKFMBF3HTWWXPBEFL/
    label: security@huntr.dev
  - url: 'https://security.gentoo.org/glsa/202208-32'
    label: security@huntr.dev
  - url: 'http://www.openwall.com/lists/oss-security/2022/01/15/1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/vim/vim/commit/615ddd5342b50a6878a907062aa471740bd9a847'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/ce6e8609-77c6-4e17-b9fc-a2e5abed052e'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2022/03/msg00018.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNXY7T5OORA7UJIMGSJBGHFMU6UZWS6P/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IH2LS2DXBTYOCWGAKFMBF3HTWWXPBEFL/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202208-32'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.01786
epssPercentile: 0.77655
ingestedAt: '2026-10-08T23:16:47.326Z'
---

## Overview

vim is vulnerable to Heap-based Buffer Overflow

## Affected

- `vim < 8.2.3611`
- `fedora = 34`
- `fedora = 35`
- `debian_linux = 9.0`

## Remediation

Upgrade past the affected range:

- `vim 8.2.3611`
