CVE-2024-41957: Vim double free in src/alloc.c:616
Vulnerability summary
CVE-2024-41957 is a medium (CVSS 5.3) Double Free vulnerability in vim. EPSS estimates a 0.37% chance of exploitation in the next 30 days, higher than 32.4% of scored vulnerabilities.
Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 01-08-2024PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · AlpineEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
- OSV · UbuntuEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.37%
Chance of exploitation in the next 30 days
Percentile
32%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.37% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- vim< 9.1.0652-r0
Debian1 product
- vimAll versions (No fix recorded) | < 2:9.1.0698-1
Ubuntu1 product
- vim< 2:7.4.052-1ubuntu3.1+esm18 | < 2:7.4.1689-3ubuntu1.5+esm24 | < 2:8.0.1453-1ubuntu1.13+esm9 | < 2:8.1.2269-1ubuntu5.24 | < 2:8.2.3995-1ubuntu2.18 | < 2:9.1.0016-1ubuntu7.2
Vim1 product
- vim< 9.1.0647
4 vendors · 4 products