{"id":"CVE-2023-48706","state":"PUBLISHED","title":"Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite","description":"Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free vulnerability. When executing a `:s` command for the very first time and using a sub-replace-special atom inside the substitution part, it is possible that the recursive `:s` call causes free-ing of memory which may later then be accessed by the initial `:s` command. The user must intentionally execute the payload and the whole process is a bit tricky to do since it seems to work only reliably for the very first :s command. It may also cause a crash of Vim. Version 9.0.2121 contains a fix for this issue.","publishedAt":"2023-11-22T22:03:39.503Z","updatedAt":"2026-06-23T17:19:11.719Z","severity":{"score":3.6,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["vim vim"],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.0.2121","status":"affected"}]}],"references":["https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q","https://github.com/vim/vim/pull/13552","https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb","https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","http://www.openwall.com/lists/oss-security/2023/11/22/3","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/","https://security.netapp.com/advisory/ntap-20240105-0001/"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:06:24.729Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/48xxx/CVE-2023-48706.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-48706","state":"PUBLISHED","datePublished":"2023-11-22T22:03:39.503Z","dateUpdated":"2026-06-23T17:19:11.719Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-11-17T19:43:37.554Z"},"containers":{"cna":{"title":"Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite","descriptions":[{"lang":"en","value":"Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free vulnerability. When executing a `:s` command for the very first time and using a sub-replace-special atom inside the substitution part, it is possible that the recursive `:s` call causes free-ing of memory which may later then be accessed by the initial `:s` command. The user must intentionally execute the payload and the whole process is a bit tricky to do since it seems to work only reliably for the very first :s command. It may also cause a crash of Vim. Version 9.0.2121 contains a fix for this issue."}],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< 9.0.2121","status":"affected"}]}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q","name":"https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/pull/13552","name":"https://github.com/vim/vim/pull/13552","tags":["x_refsource_MISC"]},{"url":"https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb","name":"https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb","tags":["x_refsource_MISC"]},{"url":"https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","name":"https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2023/11/22/3"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/"},{"url":"https://security.netapp.com/advisory/ntap-20240105-0001/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":3.6,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/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-01-05T18:06:19.220Z"},"source":{"advisory":"GHSA-c8qm-x72m-q53q","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q","name":"https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/vim/vim/pull/13552","name":"https://github.com/vim/vim/pull/13552","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb","name":"https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","name":"https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2023/11/22/3","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20240105-0001/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T21:37:54.655Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-48706","role":"CISA Coordinator","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2023-12-07T16:10:22.120197Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-23T17:19:11.719Z"}}]}}}