{"api_version":"1","generated_at":"2026-04-22T21:27:44+00:00","cve":"CVE-2023-46246","urls":{"html":"https://cve.report/CVE-2023-46246","api":"https://cve.report/api/cve/CVE-2023-46246.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-46246","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-46246"},"summary":{"title":"CVE-2023-46246","description":"Vim is an improved version of the good old UNIX editor Vi. Heap-use-after-free in memory allocated in the function `ga_grow_inner` in in the file `src/alloc.c` at line 748, which is freed in the file `src/ex_docmd.c` in the function `do_cmdline` at line 1010 and then used again in `src/cmdhist.c` at line 759. When using the `:history` command, it's possible that the provided argument overflows the accepted value. Causing an Integer Overflow and potentially later an use-after-free. This vulnerability has been patched in version 9.0.2068.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-10-27 19:15:00","updated_at":"2023-11-07 18:09:00"},"problem_types":["CWE-190"],"metrics":[],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgm","name":"https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgm","refsource":"MISC","tags":[],"title":"Integer Overflow in :history command · Advisory · vim/vim · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45a","name":"https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45a","refsource":"MISC","tags":[],"title":"patch 9.0.2068: [security] overflow in :history · vim/vim@9198c1f · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-46246","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46246","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"46246","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"vim","cpe5":"vim","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-46246","qid":"200016","title":"Ubuntu Security Notification for Vim Vulnerabilities (USN-6557-1)"},{"cve":"CVE-2023-46246","qid":"284816","title":"Fedora Security Update for vim (FEDORA-2023-ca6c3651fe)"},{"cve":"CVE-2023-46246","qid":"285093","title":"Fedora Security Update for vim (FEDORA-2023-3fbd936b15)"},{"cve":"CVE-2023-46246","qid":"296107","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 65.157.1 Missing (CPUJAN2024)"},{"cve":"CVE-2023-46246","qid":"356740","title":"Amazon Linux Security Advisory for vim : ALAS2-2023-2338"},{"cve":"CVE-2023-46246","qid":"356783","title":"Amazon Linux Security Advisory for vim : ALAS-2023-1893"},{"cve":"CVE-2023-46246","qid":"356913","title":"Amazon Linux Security Advisory for vim : ALAS2023-2023-431"},{"cve":"CVE-2023-46246","qid":"357186","title":"Amazon Linux Security Advisory for vim : AL2012-2024-485"},{"cve":"CVE-2023-46246","qid":"673345","title":"EulerOS Security Update for vim (EulerOS-SA-2024-1130)"},{"cve":"CVE-2023-46246","qid":"673421","title":"EulerOS Security Update for vim (EulerOS-SA-2024-1306)"},{"cve":"CVE-2023-46246","qid":"673552","title":"EulerOS Security Update for vim (EulerOS-SA-2024-1099)"},{"cve":"CVE-2023-46246","qid":"673740","title":"EulerOS Security Update for vim (EulerOS-SA-2024-1075)"},{"cve":"CVE-2023-46246","qid":"673930","title":"EulerOS Security Update for vim (EulerOS-SA-2024-1189)"},{"cve":"CVE-2023-46246","qid":"673976","title":"EulerOS Security Update for vim (EulerOS-SA-2024-1209)"},{"cve":"CVE-2023-46246","qid":"674064","title":"EulerOS Security Update for vim (EulerOS-SA-2024-1114)"},{"cve":"CVE-2023-46246","qid":"907695","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for vim (31702-1)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-46246","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Vim is an improved version of the good old UNIX editor Vi. Heap-use-after-free in memory allocated in the function `ga_grow_inner` in in the file `src/alloc.c` at line 748, which is freed in the file `src/ex_docmd.c` in the function `do_cmdline` at line 1010 and then used again in `src/cmdhist.c` at line 759. When using the `:history` command, it's possible that the provided argument overflows the accepted value. Causing an Integer Overflow and potentially later an use-after-free. This vulnerability has been patched in version 9.0.2068.\n"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-416: Use After Free","cweId":"CWE-416"}]},{"description":[{"lang":"eng","value":"CWE-190: Integer Overflow or Wraparound","cweId":"CWE-190"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"vim","product":{"product_data":[{"product_name":"vim","version":{"version_data":[{"version_affected":"=","version_value":"<= 9.0.2067"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgm","refsource":"MISC","name":"https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgm"},{"url":"https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45a","refsource":"MISC","name":"https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45a"}]},"source":{"advisory":"GHSA-q22m-h7m2-9mgm","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":4,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}]}},"nvd":{"publishedDate":"2023-10-27 19:15:00","lastModifiedDate":"2023-11-07 18:09:00","problem_types":["CWE-190"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","versionEndExcluding":"9.0.2068","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}