BreachSpiderVerified, not vibes

CVE-2024-41957 in Vim

Medium 5.3 Fix available

Vim is an open source command line text editor. Vim < v9.1.0647 has double free in src/alloc.c:616. When closing a window, the corresponding tagstack data will be cleared and freed. However a bit later, the quickfix list belonging to that window will also be cleared and if that quickfix list points to the same tagst...

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

CVSS 3.15.3
EPSS0.4%
EPSS percentile22th
FixAvailable

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

Affected products and versions

VendorProductAffected versions
Vim Vim < 9.1.0647

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. Vim < v9.1.0647 has double free in src/alloc.c:616. When closing a window, the corresponding tagstack data will be cleared and freed. However a bit later, the quickfix list belonging to that window will also be cleared and if that quickfix list points to the same tagstack data, Vim will try to free it again, resulting in a double-free/use-after-free access exception. Impact is low since the user must intentionally execute vim with several non-default flags, but it may cause a crash of Vim. The issue has been fixed as of Vim patch v9.1.0647

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-41957
BreachSpider IDBS-2024-GLOBAL-203063-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Published2024-08-01
Last modified2025-11-04
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-415: CWE-415

Analysis AI-written, not human-reviewed

Vim versions prior to v9.1.0647 contain a double-free vulnerability in the src/alloc.c file, specifically at line 616, which can lead to a use-after-free condition when closing a window.

An attacker could exploit this vulnerability by crafting a specific sequence of commands or a malicious file that triggers the double-free condition when a window is closed. This could potentially lead to arbitrary code execution or a denial of service.

Questions

What is CVE-2024-41957?

Vim versions prior to v9.1.0647 contain a double-free vulnerability in the src/alloc.c file, specifically at line 616, which can lead to a use-after-free condition when closing a window.

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

CVE-2024-41957 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L. EPSS: 0.4%.

Is CVE-2024-41957 actively exploited?

No confirmed active exploitation of CVE-2024-41957 as of 2026-05-30.

How do I remediate CVE-2024-41957?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2024-41957?

CVE-2024-41957 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 2025-11-04.