Vulnerability · Published Oct 7, 2024 · Assigned by GitHub_M
CVE-2024-47814use-after-free when closing buffers in Vim
Low 3.9
In plain English
A low-severity use-after-free in vim from vim. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | vim | 9.1.0936-r0 | ALPINE-CVE-2024-47814 |
| Alpine:v3.22 | vim | 9.1.0936-r0 | ALPINE-CVE-2024-47814 |
| Alpine:v3.23 | vim | 9.1.0936-r0 | ALPINE-CVE-2024-47814 |
| Alpine:v3.24 | vim | 9.1.0936-r0 | ALPINE-CVE-2024-47814 |
| Debian:12 | vim | 2:9.0.1378-2+deb12u1 | DEBIAN-CVE-2024-47814 |
| Debian:13 | vim | 2:9.1.0777-1 | DEBIAN-CVE-2024-47814 |
| Debian:14 | vim | 2:9.1.0777-1 | DEBIAN-CVE-2024-47814 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2.21 | USN-7131-1 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2.21 | UBUNTU-CVE-2024-47814 |
| Ubuntu:24.04:LTS | vim | 2:9.1.0016-1ubuntu7.5 | UBUNTU-CVE-2024-47814 |
| Ubuntu:24.04:LTS | vim | 2:9.1.0016-1ubuntu7.5 | USN-7131-1 |
Affected products (as reported)
Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L