{"id":"CVE-2024-41965","state":"PUBLISHED","title":"Vim < v9.1.0648 has a double-free in dialog_changed()","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.","publishedAt":"2024-08-01T21:44:09.056Z","updatedAt":"2024-11-15T13:08:18.743Z","severity":{"score":4.2,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["vim vim"],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.1.0648","status":"affected"}]}],"references":["https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f","https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c","https://security.netapp.com/advisory/ntap-20241115-0002/"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41965.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-41965","state":"PUBLISHED","datePublished":"2024-08-01T21:44:09.056Z","dateUpdated":"2024-11-15T13:08:18.743Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-07-24T16:51:40.952Z"},"containers":{"cna":{"title":"Vim < v9.1.0648 has a double-free in dialog_changed()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.1.0648","status":"affected"}]}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f","name":"https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c","name":"https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":4.2,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"CWE-416: Use After Free","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-08-01T21:44:09.056Z"},"source":{"advisory":"GHSA-46pw-v7qw-xc2f","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-07T14:52:14.375534Z","id":"CVE-2024-41965","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-07T14:53:02.063Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.netapp.com/advisory/ntap-20241115-0002/"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-11-15T13:08:18.743Z"}}]}}}