5.3

CVE-2024-41957: Vim double free in src/alloc.c:616

Modified
AliasesALPINE-CVE-2024-41957UBUNTU-CVE-2024-41957DEBIAN-CVE-2024-41957
Published 01-08-2024Last modified 04-11-2025

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.

Priority
Routine

Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.1 (NVD)
EPSS score
0.37%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 1

Timeline

  1. 01-08-2024
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

4 vendors · 4 products

References

11 links
Show all 11 references