CVE & CISA-KEV Catalog

CVE-2024-41957

MEDIUM
4.5
CVSS v3
NVD

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

How to fix

Remediation Available
vimDebian
Fixed in:2:9.1.0698-1CVE-2024-41957
Fixed in:2:9.1.0698-1CVE-2024-41957
vimUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm18USN-6993-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm24USN-6993-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm9USN-6993-1
Fixed in:2:8.1.2269-1ubuntu5.24USN-6993-1
Fixed in:2:8.2.3995-1ubuntu2.18USN-6993-1
Fixed in:2:9.1.0016-1ubuntu7.2USN-6993-1
VimWindows application
Affected:9.1.0647Fixed in:9.1.0647Bram Moolenaar et al.

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityLow

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Exploit Intelligence

0.36%probability of exploitation in 30 days
28thpercentile

Low risk: more likely to be exploited than 28% of all known CVEs.

References

Related Vulnerabilities

Other CWE-415 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-25136Medium6.590%-Fix
CVE-2018-0101Critical10.087%-Fix
CVE-2003-0545Critical9.885%-Fix
CVE-2019-3829Medium5.359%-Fix
CVE-2026-33824Critical9.856%-Fix
CVE-2021-3407Medium5.550%-Fix
Embed a live status badge for CVE-2024-41957
CVE-2024-41957 severity badge

Markdown

[![CVE-2024-41957](https://tridentstack.com/cve/badge/CVE-2024-41957.svg)](https://tridentstack.com/cve/CVE-2024-41957)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-41957"><img src="https://tridentstack.com/cve/badge/CVE-2024-41957.svg" alt="CVE-2024-41957"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-04.