🛡️ CVE-2024-41957 — vim

🟡 CVSS 4.5 — Medium ✅ No Known Exploit CWE-415 NVD
4.5
CVSS Score
0 Low4 Medium7 High9 Critical10

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 this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is high, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity low, availability low.

Weakness class

CVE-2024-41957 is classified as CWE-415: Double Free. The same allocation is released twice, corrupting allocator bookkeeping.

Affected software

CVE-2024-41957 is recorded against 1 package.

  • vim (fixed in 9.1.0647)

Timeline and source

Published on 1 August 2024 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com
github.com
seclists.org
www.openwall.com
security.netapp.com

CVE-2024-41957 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity MEDIUM
CVSS Score 4.5
CVSS Vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
CWE CWE-415
Public Exploit ✅ No
Source NVD
Published 2024-08-01
Updated 2026-08-11
Modified 2026-06-17

Affected Packages

Software From version Fixed in
vim 9.1.0647

Vulnerability Monitoring

Track new vulnerabilities in vim

CVE-2024-41957 is rated CVSS 4.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024