4.7

CVE-2024-43374: neovim Use After Free

CVSS: 4.7v3.1MediumAnalyzed
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 27.3% of scored vulnerabilities.

Overall risk
19/100
0100
Low · default modelHow is this calculated?
CVSS score
4.7/10
010
Medium · v3.1 (NVD)
EPSS score
0.35%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known 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

27%

Versus all other CVEs

30-day change

0.00 pp

From 0.35% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.35%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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