BreachSpiderVerified, not vibes

CVE-2024-41965 in Vim

Medium 4.2

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,...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.14.2
EPSS0.3%
EPSS percentile18th
FixUnknown

Requires local access, high complexity, low privileges required, requires user interaction, impact contained to the vulnerable component.

Affected products and versions

VendorProductAffected versions
Vim Vim < 9.1.0648

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-41965
BreachSpider IDBS-2024-GLOBAL-203070-M
CVSS vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
Published2024-08-01
Last modified2026-09-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-415: CWE-415

CWE-416: Use After Free

Software references memory after it has been freed, leading to corruption, crashes, or code execution.

Analysis AI-written, not human-reviewed

Vim versions prior to v9.1.0648 contain a double-free vulnerability in the dialog_changed() function, which can be exploited by an attacker to cause a denial of service or potentially execute arbitrary code.

The vulnerability occurs when abandoning a modified buffer in Vim. If the buffer does not have a name, Vim attempts to create a new file named 'Untitled'. During this process, a pointer is freed twice, leading to a double-free condition.

Questions

What is CVE-2024-41965?

Vim versions prior to v9.1.0648 contain a double-free vulnerability in the dialog_changed() function, which can be exploited by an attacker to cause a denial of service or potentially execute arbitrary code.

What is the CVSS score for CVE-2024-41965?

CVE-2024-41965 has CVSS 4.2 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L. EPSS: 0.3%.

Is CVE-2024-41965 actively exploited?

No confirmed active exploitation of CVE-2024-41965 as of 2026-09-18.

How do I remediate CVE-2024-41965?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2024-41965?

CVE-2024-41965 affects Vim Vim.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Vim","product":"Vim","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-09-17.