4.7

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

Analyzed
AliasesALPINE-CVE-2024-43374UBUNTU-CVE-2024-43374DEBIAN-CVE-2024-43374
Published 15-08-2024Last modified 20-09-2024

Vulnerability summary

CVE-2024-43374 is a medium (CVSS 4.7) Use After Free vulnerability in neovim. EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 30.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.7/10
010
Medium · v3.1 (NVD)
EPSS score
0.35%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5 · Related 6

Timeline

  1. 15-08-2024
    PublishedVulnerability first disclosed.
  2. 20-09-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.35%

Chance of exploitation in the next 30 days

Percentile

31%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.35% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • vim< 9.1.0678-r0
Chainguard1 product
  • vim< 9.1.0686-r0
Debian1 product
  • vimAll versions (No fix recorded) | < 2:9.1.0698-1
Neovim1 product
Netapp1 product
Ubuntu1 product
  • vim< 2:7.4.052-1ubuntu3.1+esm18 | < 2:7.4.1689-3ubuntu1.5+esm24 | < 2:8.0.1453-1ubuntu1.13+esm9 | < 2:8.1.2269-1ubuntu5.24 | < 2:8.2.3995-1ubuntu2.18 | < 2:9.1.0016-1ubuntu7.2
Vim1 product
Wolfi1 product
  • vim< 9.1.0686-r0

8 vendors · 8 products

References

12 links
Show all 12 references