Skip to content
Fencer Vulns
medium 4.5

CVE-2024-43374 json

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

published 2024-08-15 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-40255

cvss
4.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 28%
public exploits
0
none known

Summary

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.

Patch / fix

  • vim vim 9.1.0678
  • vim Debian 14, Debian 13 2:9.1.0698-1

debian advisories DEBIAN-CVE-2024-43374

  • vim Ubuntu 20.04 LTS 2:8.1.2269-1ubuntu5.24
  • vim Ubuntu 22.04 LTS 2:8.2.3995-1ubuntu2.18
  • vim Ubuntu 24.04 LTS 2:9.1.0016-1ubuntu7.2
  • vim Ubuntu Pro 14.04 LTS 2:7.4.052-1ubuntu3.1+esm18
  • vim Ubuntu Pro 16.04 LTS 2:7.4.1689-3ubuntu1.5+esm24
  • vim Ubuntu Pro 18.04 LTS 2:8.0.1453-1ubuntu1.13+esm9

ubuntu advisories UBUNTU-CVE-2024-43374

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • vim Linux Micro 6.0 9.1.1101-1.1
  • vim SLE Module for Desktop Applications 15 SP6, SLE Module for Desktop Applications 15 SP5, SLE Module for Basesystem 15 SP6 +5 more 9.1.0836-150500.20.15.1
  • vim SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 9.1.0836-17.38.1

suse advisories SUSE-SU-2025:20128-1SUSE-SU-2024:4409-1SUSE-SU-2024:4330-1

  • vim Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 9.1.0678-r0

alpine advisories ALPINE-CVE-2024-43374

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • vim Azure Linux 3.0 9.0.2190-5
  • vim CBL-Mariner 2.0 9.0.2121-3

azure linux advisories AZL-47817AZL-47832

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-43374 updated cvss 3.3

vim: use-after-free in alist_add() in src/arglist.c

  • Red Hat Enterprise Linux 6 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 7 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 9 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 10 vim Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9
    affected: no fix available “Fix deferred”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel9
    under investigation

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.35% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.5 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
NVD 3.1 4.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

  • vim vim

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.