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.

Severity (CVSS 3.1)3.9Low
Exploit odds (30 days)0.3%top 77.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.21vim9.1.0936-r0ALPINE-CVE-2024-47814
Alpine:v3.22vim9.1.0936-r0ALPINE-CVE-2024-47814
Alpine:v3.23vim9.1.0936-r0ALPINE-CVE-2024-47814
Alpine:v3.24vim9.1.0936-r0ALPINE-CVE-2024-47814
Debian:12vim2:9.0.1378-2+deb12u1DEBIAN-CVE-2024-47814
Debian:13vim2:9.1.0777-1DEBIAN-CVE-2024-47814
Debian:14vim2:9.1.0777-1DEBIAN-CVE-2024-47814
Ubuntu:22.04:LTSvim2:8.2.3995-1ubuntu2.21USN-7131-1
Ubuntu:22.04:LTSvim2:8.2.3995-1ubuntu2.21UBUNTU-CVE-2024-47814
Ubuntu:24.04:LTSvim2:9.1.0016-1ubuntu7.5UBUNTU-CVE-2024-47814
Ubuntu:24.04:LTSvim2:9.1.0016-1ubuntu7.5USN-7131-1

Affected products (as reported)

VendorProductVersions
vim vim < v9.1.0764

Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L

References