Out-of-bounds Read in vim/vim
Description
An out-of-bounds read in Vim's statusline handling prior to 9.0.1143 could lead to a crash or memory exposure.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
An out-of-bounds read in Vim's statusline handling prior to 9.0.1143 could lead to a crash or memory exposure.
Vulnerability
An out-of-bounds read vulnerability exists in the build_stl_str_hl() function of Vim, specifically when processing a malformed 'statusline' option containing a % character followed immediately by 0 (e.g., %!%0). The improper bounds check in the patch 9.0.1143 [4] shows that when the character after % is NUL (string terminator), the loop continues without breaking, leading to an illegal memory access. All versions of Vim prior to 9.0.1143 are affected.
Exploitation
To exploit this vulnerability, an attacker must be able to set or influence the 'statusline' option to a crafted string such as %!%0. This could occur if a user opens a file that sets the statusline via a modeline or if a malicious script configures the option. When the statusline is redrawn (e.g., via :redraw), the out-of-bounds read is triggered. No authentication is required beyond the ability to execute Vim commands or open a specially crafted file.
Impact
Successful exploitation results in an out-of-bounds read, which can cause a crash (assertion failure or segmentation fault) and may potentially leak sensitive memory contents. Apple's advisory [1] confirms that on macOS Ventura 13.3, the issue was addressed with improved bounds checks and rated that an app may be able to cause unexpected system termination or write kernel memory, indicating potential for more severe outcomes in certain configurations.
Mitigation
The vulnerability is fixed in Vim version 9.0.1143 [4]. Users should upgrade to this version or later. For macOS users, the fix is included in macOS Ventura 13.3 (released March 27, 2023) [1]. Fedora package announcements [2][3] indicate that updates were made available for Fedora distributions. No workaround other than updating is known.
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
7- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3Y752EAVACVC5XY2TMGGOAIU25VQRPDW/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T33LLWHLH63XDCO5OME7NWN63RA4U5HF/mitrevendor-advisory
- security.gentoo.org/glsa/202305-16mitrevendor-advisory
- seclists.org/fulldisclosure/2023/Mar/17mitremailing-list
- github.com/vim/vim/commit/7b17eb4b063a234376c1ec909ee293e42cff290cmitre
- huntr.dev/bounties/5e6f325c-ba54-4bf0-b050-dca048fd3fd9mitre
- support.apple.com/kb/HT213670mitre
News mentions
0No linked articles in our index yet.