VDB

CVE-2024-41957

CVE-2024-41957 PUBLISHED CVSS 4.5 MEDIUM

Vim double free in src/alloc.c:616

Reported by github_m · Published August 1, 2024

Vim is an open source command line text editor. Vim < v9.1.0647 has double free in src/alloc.c:616. When closing a window, the corresponding tagstack data will be cleared and freed. However a bit later, the quickfix list belonging to that window will also be cleared and if that quickfix list points to the same tagstack data, Vim will try to free it again, resulting in a double-free/use-after-free access exception. Impact is low since the user must intentionally execute vim with several non-default flags, but it may cause a crash of Vim. The issue has been fixed as of Vim patch v9.1.0647

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
xxdAmazon Linux2:9.1.785-1.amzn2023.0.1
vim-default-editorAmazon Linux2:9.1.785-1.amzn2023.0.1
vim-minimalAmazon Linux2:9.1.785-1.amzn2023.0.1
vimAlpine9.1.0652-r0
vim-filesystemAmazon Linux2:9.1.785-1.amzn2023.0.1
vimvim9.1.0647

Risk scores

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

Affected products

VendorProductVersions
vimvim< 9.1.0647
amazon:2023vim-common0
amazon:2023xxd0
amazon:2023vim-default-editor0
amazon:2023vim-minimal0
alpinevim0
amazon:2023vim-filesystem0
vimvim0
amazon:2023vim-data0
amazon:2023vim-enhanced0

Timeline

  • Aug 1, 2024 CVE Published
  • Aug 6, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
  • Nov 4, 2025 CVE Updated
  • Jan 7, 2026 Security Advisory (2 in total, the first dated here)
  • Nov 22, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-41957
vulnetix vdb fixes CVE-2024-41957

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-41957/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 ›