VDB

CVE-2024-43374

CVE-2024-43374 PUBLISHED CVSS 4.5 MEDIUM

Vim heap-use-after-free in src/arglist.c:207

Reported by github_m · Published August 15, 2024

The UNIX editor Vim prior to version 9.1.0678 has a use-after-free error in argument list handling. When adding a new file to the argument list, this triggers `Buf*` autocommands. If in such an autocommand the buffer that was just opened is closed (including the window where it is shown), this causes the window structure to be freed which contains a reference to the argument list that we are actually modifying. Once the autocommands are completed, the references to the window and argument list are no longer valid and as such cause an use-after-free. Impact is low since the user must either intentionally add some unusual autocommands that wipe a buffer during creation (either manually or by sourcing a malicious plugin), but it will crash Vim. The issue has been fixed as of Vim patch v9.1.0678.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
vimvim9.1.0678
neovimneovim0.10.4

Risk scores

CVSS 3.1
4.5
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Affected products

VendorProductVersions
vimvim< 9.1.0678
vimvim0
amazon:2023xxd0
wolfivim0
alpinevim0
amazon:2023vim-default-editor0
amazon:2023vim-filesystem0
amazon:2023vim-minimal0
amazon:2023vim-data0
amazon:2023vim-common0
amazon:2023vim-enhanced0
chainguardvim0

Timeline

  • Aug 15, 2024 CVE Published
  • Aug 16, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
  • Jan 6, 2026 Security Advisory (2 in total, the first dated here)
  • Feb 15, 2026 CVE Updated
  • Aug 10, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-43374
vulnetix vdb fixes CVE-2024-43374

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-43374/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›