# CVE-2024-47814: use-after-free when closing buffers in Vim

- Priority: **Routine**
- Reason: Not severe (CVSS 3.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-10-07 · Modified: 2025-11-03
- Aliases: ALPINE-CVE-2024-47814, MGASA-2024-0329, UBUNTU-CVE-2024-47814, USN-7131-1, DEBIAN-CVE-2024-47814, CGA-72j4-j9c3-qmjc, CGA-gqcv-5m9q-hrc7
- Record: https://cvemate.com/vulnerability/CVE-2024-47814 · JSON: https://cvemate.com/vulnerability/CVE-2024-47814/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.296%, percentile 23.971%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine vim (Alpine Linux): \< 9.1.0936-r0
- chainguard vim (Chainguard): \< 9.1.0766-r0
- wolfi vim (Wolfi): \< 9.1.0766-r0
- debian vim (Debian): \< 2:9.0.1378-2+deb12u1 \| \< 2:9.1.0777-1
- ubuntu vim (Ubuntu): \< 2:7.4.052-1ubuntu3.1+esm20 \| \< 2:7.4.1689-3ubuntu1.5+esm26 \| \< 2:8.0.1453-1ubuntu1.13+esm11 \| \< 2:8.1.2269-1ubuntu5.29 \| \< 2:8.2.3995-1ubuntu2.21 \| \< 2:9.1.0016-1ubuntu7.5
- mageia vim (Mageia): \< 9.1.771-1.mga9
- netapp bootstrap\_os: na
- vim vim: \< v9.1.0764 \| \< 9.1.0764

## References

- <https://github.com/vim/vim/security/advisories/GHSA-rj48-v4mq-j4vg>
- <https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3>
- <https://security.netapp.com/advisory/ntap-20250411-0009/>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html>
- <https://security.alpinelinux.org/vuln/CVE-2024-47814>
- <https://advisories.mageia.org/MGASA-2024-0329.html>
- <https://bugs.mageia.org/show_bug.cgi?id=33626>
- <https://www.openwall.com/lists/oss-security/2024/10/06/1>
- <https://ubuntu.com/security/CVE-2024-47814>
- <https://www.cve.org/CVERecord?id=CVE-2024-47814>
- <https://ubuntu.com/security/notices/USN-7131-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-47814>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47814.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47814>

---

Data as of 2026-12-05T03:09:36.969Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
