# CVE-2024-41957: Vim double free in src/alloc.c:616

- 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.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2024-08-01T21:41:42.921Z
- Modified: 2026-06-17T07:48:31.607Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Vim is an open source command line text editor. Vim < v9.1.0647 has double free in src/alloc.c:616. When closing a window, the corresponding tagstack data will be cleared and freed. However a bit later, the quickfix list belonging to that window will also be cleared and if that quickfix list points to the same tagstack data, Vim will try to free it again, resulting in a double-free/use-after-free access exception. Impact is low since the user must intentionally execute vim with several non-default flags,
but it may cause a crash of Vim. The issue has been fixed as of Vim patch v9.1.0647

(As written by CVE List.)

## Affected

- vim vim: < 9.1.0647; before 9.1.0647

## 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 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-f9cr-gv85-hcr4> (vendor-advisory)
- <https://github.com/vim/vim/commit/8a0bbe7b8aad6f8da28dee218c01bc8a0185a> (patch)
- <http://www.openwall.com/lists/oss-security/2024/08/01/1>
- <https://security.netapp.com/advisory/ntap-20241129-0007/>
- <http://seclists.org/fulldisclosure/2024/Sep/33>

## Sources

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

---

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