VDB

CVE-2024-41965

CVE-2024-41965 PUBLISHED CVSS 4.2 MEDIUM

Vim < v9.1.0648 has a double-free in dialog_changed()

Reported by github_m · Published August 1, 2024

Vim is an open source command line text editor. double-free in dialog_changed() in Vim < v9.1.0648. When abandoning a buffer, Vim may ask the user what to do with the modified buffer. If the user wants the changed buffer to be saved, Vim may create a new Untitled file, if the buffer did not have a name yet. However, when setting the buffer name to Unnamed, Vim will falsely free a pointer twice, leading to a double-free and possibly later to a heap-use-after-free, which can lead to a crash. The issue has been fixed as of Vim patch v9.1.0648.

Fixed versions

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

PackageEcosystemFixed in
neovimneovim0.10.2

Risk scores

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

Affected products

VendorProductVersions
vimvim< 9.1.0648
vimvim0
alpinevim0

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)
  • Dec 5, 2025 CVE Updated
  • Jan 7, 2026 Security Advisory (2 in total, the first dated here)
  • Nov 2, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-41965
vulnetix vdb fixes CVE-2024-41965

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