Heap-based Buffer Overflow in vim/vim
Description
A heap-based buffer overflow in Vim <9.0.1225 can be exploited via a crafted file, leading to arbitrary code execution.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A heap-based buffer overflow in Vim <9.0.1225 can be exploited via a crafted file, leading to arbitrary code execution.
Vulnerability
A heap-based buffer overflow exists in Vim prior to version 9.0.1225 [1][2][3]. The bug resides in the source code of the vim/vim repository and can be triggered when processing specially crafted input files. The vulnerability is accessible without special configuration beyond opening the malicious file in Vim.
Exploitation
An attacker exploiting this vulnerability needs to craft a file that, when opened by a victim using Vim, triggers the heap overflow. No authentication or special network position is required if the victim can be persuaded to open the file locally; in the context of Apple's advisory, a remote vector is not described but the local vector suffices. The attacker must deliver the crafted file to the target (e.g., via email, download, or file share).
Impact
Successful exploitation could allow the attacker to execute arbitrary code on the affected system. Apple's advisory for macOS Ventura 13.3 states the impact as "An app may be able to cause unexpected system termination or write kernel memory" [1], while for macOS Monterey and Big Sur the impact is "execute arbitrary code with kernel privileges" [2][3]. This indicates a high severity outcome, potentially leading to full system compromise.
Mitigation
The vulnerability is fixed in Vim version 9.0.1225; users should upgrade to this version or later. Apple included the fix in macOS Ventura 13.3, macOS Monterey 12.6.4, and macOS Big Sur 11.7.5 [1][2][3]. Linux distributions such as Fedora have also provided updates [4]. No workaround is documented; users are advised to apply the patch from the official Vim release or their OS vendor.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
18- osv-coords16 versionspkg:rpm/opensuse/vim&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/vim&distro=openSUSE%20Leap%20Micro%205.2pkg:rpm/opensuse/vim&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP4pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/vim&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/vim&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 9.0.1234-150000.5.34.1+ 15 more
- (no CPE)range: < 9.0.1234-150000.5.34.1
- (no CPE)range: < 9.0.1234-150000.5.34.1
- (no CPE)range: < 9.0.1234-150000.5.34.1
- (no CPE)range: < 9.0.1234-150000.5.34.1
- (no CPE)range: < 9.0.1234-150000.5.34.1
- (no CPE)range: < 9.0.1234-150000.5.34.1
- (no CPE)range: < 9.0.1234-150000.5.34.1
- (no CPE)range: < 9.0.1234-150000.5.34.1
- (no CPE)range: < 9.0.1234-150000.5.34.1
- (no CPE)range: < 9.0.1234-17.12.1
- (no CPE)range: < 9.0.1234-17.12.1
- (no CPE)range: < 9.0.1234-17.12.1
- (no CPE)range: < 9.0.1234-17.12.1
- (no CPE)range: < 9.0.1234-17.12.1
- (no CPE)range: < 9.0.1234-17.12.1
- (no CPE)range: < 9.0.1234-17.12.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
10- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4EX6N2DB75A73MQGVW3CS4VTNPAYVM2M/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PZWIJBSQX53P7DHV77KRXJIXA4GH7XHC/mitrevendor-advisory
- seclists.org/fulldisclosure/2023/Mar/17mitremailing-list
- seclists.org/fulldisclosure/2023/Mar/18mitremailing-list
- seclists.org/fulldisclosure/2023/Mar/21mitremailing-list
- github.com/vim/vim/commit/11977f917506d950b7e0cae558bd9189260b253bmitre
- huntr.dev/bounties/ae933869-a1ec-402a-bbea-d51764c6618emitre
- support.apple.com/kb/HT213670mitre
- support.apple.com/kb/HT213675mitre
- support.apple.com/kb/HT213677mitre
News mentions
0No linked articles in our index yet.