{"schemaVersion":3,"id":"CVE-2024-41965","aliases":["ALPINE-CVE-2024-41965","DEBIAN-CVE-2024-41965"],"status":"published","duplicateOf":null,"title":null,"description":"Vim is an open source command line text editor. double-free in dialog_changed() in Vim < v9.1.0648. When abandoning a buffer, Vim may ask the user what to do with the modified buffer. If the user wants the changed buffer to be saved, Vim may create a new Untitled file, if the buffer did not have a name yet. However, when setting the buffer name to Unnamed, Vim will falsely free a pointer twice, leading to a double-free and possibly later to a heap-use-after-free, which can lead to a crash. The issue has been fixed as of Vim patch v9.1.0648.","dates":{"published":"2024-08-01T21:44:09.056Z","modified":"2024-11-15T13:08:18.743Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.2,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/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.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/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":4.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","exploitability":2.1,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","exploitability":2.1,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0033,"percentile":0.24695,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0033},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0031,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0031,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0031,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0031,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0033,"percentile":0.24695}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0033,"percentile":0.24695}]},"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-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"},{"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":"neovim","product":"neovim","name":"neovim","label":"neovim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.10.0, < 0.10.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.10.0, < 0.10.2","eol":null,"hubHref":"/vendor/neovim/neovim"},{"vendor":"netapp","product":"hci_compute_node","name":"hci compute node","label":"hci_compute_node","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/hci_compute_node"},{"vendor":"vim","product":"vim","name":"vim","label":"vim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.1.0648","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1.0648","eol":null,"hubHref":"/vendor/vim/vim"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f","label":"github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f","hostname":"github.com","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c","label":"github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://security.netapp.com/advisory/ntap-20241115-0002/","label":"security.netapp.com/advisory/ntap-20241115-0002/","hostname":"security.netapp.com","tags":["Vendor Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-41965","label":"security.alpinelinux.org/vuln/CVE-2024-41965","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-41965","label":"security-tracker.debian.org/tracker/CVE-2024-41965","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41965","label":"nvd.nist.gov/vuln/detail/CVE-2024-41965","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["SUSE-SU-2025:02226-1","SUSE-SU-2025:02227-1","SUSE-SU-2025:02228-1"],"duplicates":[],"related":["SUSE-SU-2025:02226-1","SUSE-SU-2025:02227-1","SUSE-SU-2025:02228-1","UBUNTU-CVE-2024-41965"]},"timeline":[{"kind":"published","date":"2024-08-01T21:44:09.056Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-11-15T13:08:18.743Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":17,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T12:17:31.941Z","stale":false,"partial":false}}