{"schemaVersion":3,"id":"CVE-2024-41957","aliases":["ALPINE-CVE-2024-41957","UBUNTU-CVE-2024-41957","DEBIAN-CVE-2024-41957"],"status":"published","duplicateOf":null,"title":null,"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,\nbut it may cause a crash of Vim. The issue has been fixed as of Vim patch v9.1.0647","dates":{"published":"2024-08-01T21:41:42.921Z","modified":"2025-11-04T16:13:39.839Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":4.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":2.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":4.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00366,"percentile":0.29034,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00366},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00366,"percentile":0.29034}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00366,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00366,"percentile":0.29034}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-415","name":"Double Free","description":"The product calls free() twice on the same memory address.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/415.html"}],"affected":[{"vendor":"alpine","product":"vim","name":"vim","label":"vim","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/vim","purlType":"apk","versions":[{"text":"< 9.1.0652-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1.0652-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"vim","name":"vim","label":"vim","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/vim","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2:9.1.0698-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2:9.1.0698-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"vim","name":"vim","label":"vim","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/vim","purlType":"deb","versions":[{"text":"< 2:7.4.052-1ubuntu3.1+esm18","noFixRecorded":false,"fixedIn":null},{"text":"< 2:7.4.1689-3ubuntu1.5+esm24","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.0.1453-1ubuntu1.13+esm9","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.1.2269-1ubuntu5.24","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.2.3995-1ubuntu2.18","noFixRecorded":false,"fixedIn":null},{"text":"< 2:9.1.0016-1ubuntu7.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 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","eol":null,"hubHref":null},{"vendor":"vim","product":"vim","name":"vim","label":"vim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.1.0647","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1.0647","eol":null,"hubHref":"/vendor/vim/vim"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-f9cr-gv85-hcr4","label":"github.com/vim/vim/security/advisories/GHSA-f9cr-gv85-hcr4","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Vendor Advisory"]},{"url":"https://github.com/vim/vim/commit/8a0bbe7b8aad6f8da28dee218c01bc8a0185a","label":"github.com/vim/vim/commit/8a0bbe7b8aad6f8da28dee218c01bc8a0185a","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"http://www.openwall.com/lists/oss-security/2024/08/01/1","label":"www.openwall.com/lists/oss-security/2024/08/01/1","hostname":"www.openwall.com","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241129-0007/","label":"security.netapp.com/advisory/ntap-20241129-0007/","hostname":"security.netapp.com","tags":[]},{"url":"http://seclists.org/fulldisclosure/2024/Sep/33","label":"seclists.org/fulldisclosure/2024/Sep/33","hostname":"seclists.org","tags":[]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-41957","label":"security.alpinelinux.org/vuln/CVE-2024-41957","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-41957","label":"ubuntu.com/security/CVE-2024-41957","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-41957","label":"www.cve.org/CVERecord?id=CVE-2024-41957","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6993-1","label":"ubuntu.com/security/notices/USN-6993-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-41957","label":"security-tracker.debian.org/tracker/CVE-2024-41957","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41957","label":"nvd.nist.gov/vuln/detail/CVE-2024-41957","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2024-0285","USN-6993-1"],"duplicates":[],"related":["USN-6993-1"]},"timeline":[{"kind":"published","date":"2024-08-01T21:41:42.921Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-04T16:13:39.839Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":21,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:49:06.976Z","stale":false,"partial":false}}