# CVE-2024-41965: Vim \< v9.1.0648 has a double-free in dialog\_changed()

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-01 · Modified: 2024-11-15
- Aliases: ALPINE-CVE-2024-41965, DEBIAN-CVE-2024-41965
- Record: https://cvemate.com/vulnerability/CVE-2024-41965 · JSON: https://cvemate.com/vulnerability/CVE-2024-41965/json

## Description

```text
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.
```

## Signals

- CVSS: 4.2 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
- EPSS: 0.333%, percentile 28.561%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine vim (Alpine Linux): \< 9.1.0652-r0
- debian vim (Debian): All versions (No fix recorded) \| \< 2:9.1.0698-1
- neovim neovim: ≥ 0.10.0, \< 0.10.2
- netapp hci\_compute\_node: na
- vim vim: \< 9.1.0648

## References

- <https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f>
- <https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c>
- <https://security.netapp.com/advisory/ntap-20241115-0002/>
- <https://security.alpinelinux.org/vuln/CVE-2024-41965>
- <https://security-tracker.debian.org/tracker/CVE-2024-41965>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41965>

---

Data as of 2026-12-05T04:11:30.923Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
