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

- Severity: Medium 4.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2024-08-15T23:47:38.255Z
- Modified: 2026-06-17T07:50:54.520Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vim vim: < 9.1.0678; before 9.1.0678
- netapp bootstrap_os: no versions given
- neovim neovim: up to 0.10.4

## Every score

- GitHub_M: CVSS:3.1 4.5 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-2w8m-443v-cgvw> (vendor-advisory)
- <https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8> (patch)
- <http://www.openwall.com/lists/oss-security/2024/08/15/6> (mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20240920-0004/> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-43374](https://www.cve.org/CVERecord?id=CVE-2024-43374), CVE Terms of Use, modified 2024-09-20
- NVD: [CVE-2024-43374](https://nvd.nist.gov/vuln/detail/CVE-2024-43374), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-43374 · Whole record: https://cve.day/CVE-2024-43374.json · Rebuilt by cve.day 2026-11-25T22:58:44.434Z
