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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-15 · Modified: 2024-09-20
- Aliases: ALPINE-CVE-2024-43374, UBUNTU-CVE-2024-43374, DEBIAN-CVE-2024-43374, CGA-r799-86v7-q3h3, CGA-v27c-4qmh-4qgp
- Record: https://cvemate.com/vulnerability/CVE-2024-43374 · JSON: https://cvemate.com/vulnerability/CVE-2024-43374/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.352%, percentile 30.87%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine vim (Alpine Linux): \< 9.1.0678-r0
- chainguard vim (Chainguard): \< 9.1.0686-r0
- wolfi vim (Wolfi): \< 9.1.0686-r0
- debian vim (Debian): All versions (No fix recorded) \| \< 2:9.1.0698-1
- ubuntu vim (Ubuntu): \< 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
- neovim neovim: ≤ 0.10.4
- netapp bootstrap\_os: na
- vim vim: \< 9.1.0678

## References

- <https://github.com/vim/vim/security/advisories/GHSA-2w8m-443v-cgvw>
- <https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8>
- <http://www.openwall.com/lists/oss-security/2024/08/15/6>
- <https://security.netapp.com/advisory/ntap-20240920-0004/>
- <https://security.alpinelinux.org/vuln/CVE-2024-43374>
- <https://ubuntu.com/security/CVE-2024-43374>
- <https://www.cve.org/CVERecord?id=CVE-2024-43374>
- <https://github.com/vim/vim/security/GHSA-2w8m-443v-cgvw>
- <https://ubuntu.com/security/notices/USN-6993-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-43374>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43374.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-43374>

---

Data as of 2026-12-05T03:28:38.322Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
