VDB

CVE-2021-3974

CVE-2021-3974 PUBLISHED CVSS 7.3 HIGH

Use After Free in vim/vim

Reported by @huntrdev · Published November 19, 2021

vim is vulnerable to Use After Free

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
vim-enhancedAmazon Linux2:9.0.1160-1.amzn2023.0.2, 2:8.2.3642-1.amzn2.0.1
vim-default-editorAmazon Linux2:9.0.1160-1.amzn2023.0.2
vim-commonAmazon Linux2:9.0.1160-1.amzn2023.0.2, 2:8.2.3642-1.amzn2.0.1
vimAlpine8.2.3650-r0
vim-dataAmazon Linux2:9.0.1160-1.amzn2023.0.2
gvimArch Linux8.2.3741-1
vimArch Linux8.2.3741-1
vim-filesystemAmazon Linux2:9.0.1160-1.amzn2023.0.2, 2:8.2.3642-1.amzn2.0.1
vim-X11Amazon Linux2:8.2.3642-1.amzn2.0.1
vim-minimalAmazon Linux2:9.0.1160-1.amzn2023.0.2, 2:8.2.3642-1.amzn2.0.1
vim/vimvim8.2.3612
vimvim8.2.3612

Risk scores

CVSS 3.0
7.3
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H

Affected products

VendorProductVersions
vimvim/vimunspecified
amazon:2vim-enhanced0
vimvim/vim*
amazon:2023vim-default-editor0
amazon:2023vim-common0
amazon:2023vim-enhanced0
amazon:2vim-common0
alpinevim0
amazon:2023vim-data0
archgvim0
archvim0
amazon:2023vim-filesystem0
amazon:2vim-X110
amazon:2023vim-minimal0
amazon:2vim-minimal0
amazon:2vim-filesystem0

Timeline

  • Nov 19, 2021 CVE Published
  • Nov 20, 2021 EPSS Score (30 in total, the first dated here)
  • Jun 1, 2026 Security Advisory (5 in total, the first dated here)
  • Jul 23, 2026 Coalition ESS Score
  • Oct 11, 2026 CVE Updated
  • Nov 22, 2026 Distribution Patch (3 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3974
vulnetix vdb fixes CVE-2021-3974

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3974/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›