cbcvebase.
CVE-2024-43374
published 2024-08-16

CVE-2024-43374: 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…

PriorityP417medium4.7CVSS 3.1
AVLACHPRLUINSUCNINAH
EPSS
0.35%
26.8th percentile
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.

Affected

19 ranges
VendorProductVersion rangeFixed in
debianvim< vim 2:9.1.0698-1 (forky)vim 2:9.1.0698-1 (forky)
msrcazl3_vim_9.0.2190-5_on_azure_linux_3.0
msrcazl3_vim_9.0.2190-6_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_vim_9.0.2121-3_on_cbl_mariner_2.0
msrccbl2_vim_9.0.2121-5_on_cbl_mariner_2.0
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
neovimneovim<= 0.10.4
vimvim< 9.1.06789.1.0678
vimvim>= 0 < 2:9.1.0698-12:9.1.0698-1
vimvim>= 0 < 2:9.1.0698-12:9.1.0698-1
vimvim>= 0 < 2:8.1.2269-1ubuntu5.242:8.1.2269-1ubuntu5.24
vimvim>= 0 < 2:8.2.3995-1ubuntu2.182:8.2.3995-1ubuntu2.18
vimvim>= 0 < 2:9.1.0016-1ubuntu7.22:9.1.0016-1ubuntu7.2
vimvim>= 0 < 2:7.4.052-1ubuntu3.1+esm182:7.4.052-1ubuntu3.1+esm18
vimvim>= 0 < 2:7.4.1689-3ubuntu1.5+esm242:7.4.1689-3ubuntu1.5+esm24
vimvim>= 0 < 2:8.0.1453-1ubuntu1.13+esm92:8.0.1453-1ubuntu1.13+esm9

CVSS provenance

nvdv3.14.7MEDIUMCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.3MEDIUM
vendor_debian4.5LOW
vendor_msrc4.5MEDIUM
vendor_redhat4.5MEDIUM
vendor_ubuntu4.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.