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

> A use-after-free in Vim can cause a crash when closing buffers with specific auto commands, requiring user configuration to exploit.

- **Severity:** Low 3.9 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 7 Oct 2024
- **Updated:** 3 Nov 2025
- **Also known as:** ALPINE-CVE-2024-47814, AZL-50138, AZL-50176, BELL-CVE-2024-47814, CLSA-2025-1736503187, DEBIAN-CVE-2024-47814, GHSA-rj48-v4mq-j4vg, MGASA-2024-0329, OESA-2024-2235, UBUNTU-CVE-2024-47814, USN-7131-1

## What is CVE-2024-47814?

CVE-2024-47814 is a low-severity use after free vulnerability in Netapp Bootstrap Os, published on 7 Oct 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

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.

Weakness: CWE-416 (Use After Free)

## Which versions are affected by CVE-2024-47814?

It affects 2 products.


Products: Netapp Bootstrap Os, Vim Vim.

## How do I fix CVE-2024-47814?

Upgrade to a fixed version.

## Is CVE-2024-47814 being exploited?

There is no known exploitation of CVE-2024-47814 in the wild and no public exploit code.

## Other vulnerabilities in Netapp Bootstrap Os

- [CVE-2024-43398](https://insights.sbomify.com/CVE-2024-43398/): REXML denial of service vulnerability (medium 5.9)
- [CVE-2025-30691](https://insights.sbomify.com/CVE-2025-30691/): Security feature bypass in Oracle Java SE (medium 4.8)
- [CVE-2024-43790](https://insights.sbomify.com/CVE-2024-43790/): heap-buffer-overflow in do_search() in Vim < 9.1.0689 (medium 4.5)
- [CVE-2025-29768](https://insights.sbomify.com/CVE-2025-29768/): Vim vulnerable to potential data loss with zip.vim and special crafted zip files (medium 4.4)
- [CVE-2024-39908](https://insights.sbomify.com/CVE-2024-39908/): Denial of service in REXML (medium 4.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-47814 and fix it if it is affected.

What it is: CVE-2024-47814 is a low-severity use after free vulnerability in Netapp Bootstrap Os, published on 7 Oct 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-47814 in the wild and no public exploit code.

Affected product: Netapp Bootstrap Os. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-47814/ (Markdown: https://insights.sbomify.com/CVE-2024-47814/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-47814
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-47814
- OSV: https://osv.dev/vulnerability/CVE-2024-47814

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-47814/
Summaries are generated and may contain mistakes; the official description above is the record.
