CVE-2024-47814 json
use-after-free when closing buffers in Vim
published 2024-10-07 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-42697
- cvss
- 3.9
- 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 22%
- public exploits
- 0
- none known
Summary
Vim is an open source, command line text editor. A use-after-free was found in Vim < 9.1.0764. When closing a buffer (visible in a window) a BufWinLeave auto command can cause an use-after-free if this auto command happens to re-open the same buffer in a new split window. Impact is low since the user must have intentionally set up such a strange auto command and run some buffer unload commands. However this may lead to a crash. This issue has been addressed in version 9.1.0764 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Patch / fix
- vim vim 9.1.0764
- vim Debian 12 2:9.0.1378-2+deb12u1
- vim Debian 14, Debian 13 2:9.1.0777-1
debian advisories DEBIAN-CVE-2024-47814
- vim Ubuntu 20.04 LTS 2:8.1.2269-1ubuntu5.29
- vim Ubuntu 22.04 LTS 2:8.2.3995-1ubuntu2.21
- vim Ubuntu 24.04 LTS 2:9.1.0016-1ubuntu7.5
- vim Ubuntu Pro 14.04 LTS 2:7.4.052-1ubuntu3.1+esm20
- vim Ubuntu Pro 16.04 LTS 2:7.4.1689-3ubuntu1.5+esm26
- vim Ubuntu Pro 18.04 LTS 2:8.0.1453-1ubuntu1.13+esm11
ubuntu advisories UBUNTU-CVE-2024-47814
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- vim Linux Micro 6.0 9.1.1101-1.1
- vim SLE Module for Desktop Applications 15 SP6, SLE Module for Desktop Applications 15 SP5, SLE Module for Basesystem 15 SP6 +5 more 9.1.0836-150500.20.15.1
- vim SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 9.1.0836-17.38.1
suse advisories SUSE-SU-2025:20128-1SUSE-SU-2024:4409-1SUSE-SU-2024:4330-1
- vim Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 9.1.0936-r0
alpine advisories ALPINE-CVE-2024-47814
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, Azure Linux 3.0 9.1.0791-1
azure linux advisories AZL-50138AZL-50176
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
- github.com/vim/vim@51b6238 commit
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-47814 updated cvss 3.9
vim: use-after-free when closing buffers in Vim
-
Red Hat Enterprise Linux 7 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 8 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 9 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 10 vim Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9affected: no fix available “Fix deferred”
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel9under 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.30% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L |
| NVD | 3.1 | 4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- vim vim
Classification
- Weakness
-
- CWE-416 Use After Free
References
Sources
- CVE List CVE-2024-47814
- NVD CVE-2024-47814
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.