{"schemaVersion":3,"id":"CVE-2023-48706","aliases":["ALPINE-CVE-2023-48706","UBUNTU-CVE-2023-48706","DEBIAN-CVE-2023-48706"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-11-22T22:03:39.503Z","modified":"2026-06-23T17:19:11.719Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.6,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.6,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","exploitability":2.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00544,"percentile":0.44506,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00544},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00544,"percentile":0.44506}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00544,"percentile":0.44506}]},"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":[{"id":"GITHUB_VIM_VIM","name":"Vim","source":"github","url":"https://github.com/vim/vim/issues/3711","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"GITHUB_GANDALF4A_CRASH_REPORT","name":"Crash Report","source":"github","url":"https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"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"}],"affected":[{"vendor":"alpine","product":"vim","name":"vim","label":"vim","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/vim","purlType":"apk","versions":[{"text":"< 9.0.2127-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.0.2127-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.0.2189-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2:9.0.2189-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:8.2.3995-1ubuntu2.15","noFixRecorded":false,"fixedIn":null},{"text":"< 2:9.0.2116-1ubuntu2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:8.2.3995-1ubuntu2.15 | < 2:9.0.2116-1ubuntu2","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"38","noFixRecorded":false,"fixedIn":null},{"text":"39","noFixRecorded":false,"fixedIn":null}],"versionsText":"38 | 39","eol":{"isEol":true,"eolDate":"2024-05-21T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"38","label":"38","eolFrom":"2024-05-21T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"neovim","product":"neovim","name":"neovim","label":"neovim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.9.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.9.5","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.0.2121","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.0.2121","eol":null,"hubHref":"/vendor/vim/vim"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q","label":"github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Exploit","Vendor Advisory"]},{"url":"https://github.com/vim/vim/pull/13552","label":"github.com/vim/vim/pull/13552","hostname":"github.com","tags":["X Refsource MISC","REPORT","Issue Tracking","Patch"]},{"url":"https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb","label":"github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","label":"github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","hostname":"github.com","tags":["X Refsource MISC","REPORT","Exploit"]},{"url":"http://www.openwall.com/lists/oss-security/2023/11/22/3","label":"www.openwall.com/lists/oss-security/2023/11/22/3","hostname":"www.openwall.com","tags":["REPORT","Mailing List","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240105-0001/","label":"security.netapp.com/advisory/ntap-20240105-0001/","hostname":"security.netapp.com","tags":["Vendor Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-48706","label":"security.alpinelinux.org/vuln/CVE-2023-48706","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-48706","label":"ubuntu.com/security/CVE-2023-48706","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6557-1","label":"ubuntu.com/security/notices/USN-6557-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-48706","label":"www.cve.org/CVERecord?id=CVE-2023-48706","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-48706","label":"security-tracker.debian.org/tracker/CVE-2023-48706","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48706","label":"nvd.nist.gov/vuln/detail/CVE-2023-48706","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2023-0341","SUSE-SU-2024:0783-1","SUSE-SU-2024:0871-1","SUSE-SU-2024:1287-1","USN-6557-1"],"duplicates":[],"related":["SUSE-SU-2024:0783-1","SUSE-SU-2024:0871-1","SUSE-SU-2024:1287-1","USN-6557-1"]},"timeline":[{"kind":"published","date":"2023-11-22T22:03:39.503Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-06-23T17:19:11.719Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:50:41.837Z","stale":false,"partial":false}}