Vulnerabilities

CVE-2024-41965

Medium 4.2 CVSS 3.1

Description

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.

Description as published by the source, in English.

Key facts

Published
2024-08-01
Last modified
2026-09-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.3 % higher than 21 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Neovim Neovim ≥ 0.10.0, < 0.10.2 Affected
Netapp Hci Compute Node all versions listed Affected
Vim Vim < 9.1.0648 Affected

Weakness type

  • CWE-415: Double Free

    The product calls free() twice on the same memory address.

  • CWE-416: Use After Free

    The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within…

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities