VDB

CVE-2024-47814

CVE-2024-47814 PUBLISHED CVSS 3.9 LOW

use-after-free when closing buffers in Vim

Reported by github_m · Published October 7, 2024

Vim is an open source, command line text editor. A use-after-free was found in Vim < 9.1.0764. When closing a buffer (visible in a window) a BufWinLeave auto command can cause an use-after-free if this auto command happens to re-open the same buffer in a new split window. Impact is low since the user must have intentionally set up such a strange auto command and run some buffer unload commands. However this may lead to a crash. This issue has been addressed in version 9.1.0764 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Fixed versions

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

PackageEcosystemFixed in
vim-commonAmazon Linux2:9.1.785-1.amzn2023.0.1
vim-dataAmazon Linux2:9.1.785-1.amzn2023.0.1
vim-minimalAmazon Linux2:9.1.785-1.amzn2023.0.1
xxdAmazon Linux2:9.1.785-1.amzn2023.0.1
vimChainguard9.1.0766-r0
vimAlpine9.1.0936-r0
vim-filesystemAmazon Linux2:9.1.785-1.amzn2023.0.1
vimvim9.1.0764

Risk scores

CVSS 3.1
3.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L

Affected products

VendorProductVersions
vimvim< v9.1.0764
amazon:2023vim-common0
amazon:2023vim-data0
amazon:2023vim-minimal0
amazon:2023xxd0
chainguardvim0
alpinevim0
amazon:2023vim-filesystem0
vimvim0
amazon:2023vim-default-editor0
wolfivim0
amazon:2023vim-enhanced0

Timeline

  • Oct 7, 2024 CVE Published
  • Oct 8, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 14, 2024 Coalition ESS Score (28 in total, the first dated here)
  • Nov 3, 2025 CVE Updated
  • Jan 3, 2026 Security Advisory (2 in total, the first dated here)
  • Aug 10, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-47814
vulnetix vdb fixes CVE-2024-47814

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-2024-47814/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 ›