Skip to main content
VulnerabilityPublished Updated

CVE-2024-41957: vim · Double Free

Affects vimSource GCVE Database

0
Compare

Not known to be exploited · CVSS 4.5 Medium : upgrade to 9.1.0647 when convenient.

Data as of 31 Oct 2026, 01:23 UTC

CVSS 3.1 base score
4.5Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.14.5
Patch
Available – fixed in 9.1.0647
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Aug 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade vim/vim to 9.1.0647.

Affected software

ProductAffectedFixed in
GitHubvim/vimpkg:github/vim/vimOther threatsAffected
  • <9.1.0647
Fixed in
  • 9.1.0647

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to Vim version 9.1.0647 or later, where this double free vulnerability is fixed. No other mitigation is necessary as the issue is resolved in the official patch.

Description

CVE-2024-41957 is a double free vulnerability in Vim versions prior to 9.1.0647. It occurs in the src/alloc.c file when closing a window, where tagstack data is freed twice if the quickfix list points to the same data. This can lead to a crash of Vim. The vulnerability requires the user to intentionally run Vim with several non-default flags, limiting its impact. The issue is fixed in Vim patch 9.1.0647.

References

Community reviews

Loading reviews…