Skip to content
Fencer Vulns
medium 4.2

CVE-2024-41965 json

Vim < v9.1.0648 has a double-free in dialog_changed()

published 2024-08-01 2 y ago modified 2026-09-17 52 d ago also EUVD-2024-39296

cvss
4.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 26%
public exploits
0
none known

Summary

Vim is an open source command line text editor. double-free in dialog_changed() in Vim < v9.1.0648. When abandoning a buffer, Vim may ask the user what to do with the modified buffer. If the user wants the changed buffer to be saved, Vim may create a new Untitled file, if the buffer did not have a name yet. However, when setting the buffer name to Unnamed, Vim will falsely free a pointer twice, leading to a double-free and possibly later to a heap-use-after-free, which can lead to a crash. The issue has been fixed as of Vim patch v9.1.0648.

Patch / fix

  • vim vim 9.1.0648
  • vim Debian 14, Debian 13 2:9.1.0698-1

debian advisories DEBIAN-CVE-2024-41965

  • vim SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +11 more 9.1.1406-150000.5.75.1
  • vim SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Module for Desktop Applications 15 SP7 +7 more 9.1.1406-150500.20.27.1
  • vim SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 9.1.1406-17.48.1

suse advisories SUSE-SU-2025:02228-1SUSE-SU-2025:02227-1SUSE-SU-2025:02226-1

  • vim Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 9.1.0652-r0

alpine advisories ALPINE-CVE-2024-41965

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • vim CBL-Mariner 2.0 9.0.2121-4
  • vim Azure Linux 3.0 9.0.2190-4

azure linux advisories AZL-47355AZL-47391

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-41965 updated cvss 4.2

vim: Double-Free Vulnerability in Vim Could Cause Application Crashes

  • Red Hat Enterprise Linux 6 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 7 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux 9 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 10 vim
    affected: no fix available
  • Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9
    affected: no fix available “Fix deferred”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel9
    under investigation

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.33% chance of exploitation in the next 30 days, higher than 26% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.2 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
NVD 3.1 4.2 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L

Affected products

  • vim vim

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.