CVE-2024-41965

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

Published Aug 1, 2024 CVSS 3.1 · 4.2 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-39296 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.
History
Type Values Removed Values Added
First Time appeared Neovim
Neovim neovim
Netapp
Netapp hci Compute Node
CPEs cpe:2.3:a:neovim:neovim:*:*:*:*:*:*:*:*
cpe:2.3:o:netapp:hci_compute_node:-:*:*:*:*:*:*:*
Vendors & Products Neovim
Neovim neovim
Netapp
Netapp hci Compute Node
Type Values Removed Values Added
Metrics epss

{'score': 0.00017}

epss

{'score': 0.00018}

Type Values Removed Values Added
First Time appeared Vim
Vim vim
Weaknesses CWE-415
CPEs cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
Vendors & Products Vim
Vim vim
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 15, 2024, 1:08 PM
Reserved
Jul 24, 2024, 4:51 PM
Status
Analyzed
Published
Aug 1, 2024, 10:15 PM
Modified
Sep 17, 2026, 5:59 PM
Severity
Low
Public date
Aug 1, 2024, 10:21 PM