CVE-2024-41957: vim Double Free
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 28.9% of scored vulnerabilities.
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
29%
Versus all other CVEs
30-day change
0.00 pp
From 0.37% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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