CVE-2026-57451: Vim: Out-of-bounds Read in Text Property Count
Vim is an open source, command line text editor. Prior to 9.2.0670, gettextprops() in src/textprop.c reads a uint16 property count stored inline after a line's text and returns it as the number of 32-byte textpropT entries that follow. The only check is a floor that guarantees room for a single entry; the count is never checked against the amount of data actually present. A line that declares a large count while carrying little data causes consumers to read far past the end of the line buffer. Such a line can be delivered through a crafted undo file, leading to a crash. This vulnerability is fixed in 9.2.0670.
Other sources
Vim: Out-of-bounds Read in Text Property Count
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.2.0735-1 - Upgrade
Upgrade
Vimto a version that resolves this vulnerability.Fixed in 9.2.0670
Event History
Frequently Asked Questions
What is the severity of CVE-2026-57451?
CVE-2026-57451 has a medium severity rating of 5.3.
How do I mitigate CVE-2026-57451?
To mitigate CVE-2026-57451, update Vim to version 9.2.0670 or later.
What type of vulnerability is CVE-2026-57451?
CVE-2026-57451 is an out-of-bounds read vulnerability in Vim.
What components of Vim are affected by CVE-2026-57451?
CVE-2026-57451 affects the get_text_props() function in src/textprop.c of Vim.
When was CVE-2026-57451 published?
CVE-2026-57451 was published on June 25, 2026.