CVE-2024-41965

MEDIUM EPSS 20.6%
Published Aug 1, 20241y ago · Modified Jun 17, 20262w ago
4.2 CVSS 3.1
Medium
Find Similar
Published Aug 1, 2024 1y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
4.2
Exploitability
0.8
Impact
3.4
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
Attack Vector Local
Attack Complexity High
Privileges Required Low
User Interaction Required
Scope Unchanged
Confidentiality Low
Integrity Low
Availability Low

Threat Intelligence

EPSS Exploit Probability
20.6% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 2

CWE-415
CWE-416 Use After Free Memory Safety

Affected Products 1

VendorProductVersionRange
vimvim* <9.1.0648

References 3

  • github.com https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c
    Patch
  • github.com https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f
    Vendor Advisory
  • security.netapp.com https://security.netapp.com/advisory/ntap-20241115-0002/

Remediation

  • github.com https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c
    Patch