CVE-2024-47814
use-after-free when closing buffers in Vim
Reported by github_m · Published October 7, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-common | Amazon Linux | 2:9.1.785-1.amzn2023.0.1 |
| vim-data | Amazon Linux | 2:9.1.785-1.amzn2023.0.1 |
| vim-minimal | Amazon Linux | 2:9.1.785-1.amzn2023.0.1 |
| xxd | Amazon Linux | 2:9.1.785-1.amzn2023.0.1 |
| vim | Chainguard | 9.1.0766-r0 |
| vim | Alpine | 9.1.0936-r0 |
| vim-filesystem | Amazon Linux | 2:9.1.785-1.amzn2023.0.1 |
| vim | vim | 9.1.0764 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < v9.1.0764 |
| amazon:2023 | vim-common | 0 |
| amazon:2023 | vim-data | 0 |
| amazon:2023 | vim-minimal | 0 |
| amazon:2023 | xxd | 0 |
| chainguard | vim | 0 |
| alpine | vim | 0 |
| amazon:2023 | vim-filesystem | 0 |
| vim | vim | 0 |
| amazon:2023 | vim-default-editor | 0 |
| wolfi | vim | 0 |
| amazon:2023 | vim-enhanced | 0 |
Timeline
- Oct 7, 2024 CVE Published
- Oct 8, 2024 EPSS Score (30 in total, the first dated here)
- Oct 14, 2024 Coalition ESS Score (28 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Jan 3, 2026 Security Advisory (2 in total, the first dated here)
- Aug 10, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-47814
vulnetix vdb fixes CVE-2024-47814
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-47814/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart