Vulnerability · Published Jun 25, 2026 · Assigned by GitHub_M
CVE-2026-57451Vim: Out-of-bounds Read in Text Property Count
Medium 5.3
In plain English
A medium-severity out-of-bounds read in vim from vim. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Vim is an open source, command line text editor. Prior to 9.2.0670, get_text_props() 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 textprop_T 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | vim | 9.2.0854-r0 | ALPINE-CVE-2026-57451 |
| Alpine:v3.24 | vim | 9.2.0677-r0 | ALPINE-CVE-2026-57451 |
| Debian:14 | vim | 2:9.2.0782-1 | DEBIAN-CVE-2026-57451 |
| Ubuntu:22.04:LTS | vim | no fix listed | UBUNTU-CVE-2026-57451 |
| Ubuntu:24.04:LTS | vim | no fix listed | UBUNTU-CVE-2026-57451 |
| Ubuntu:25.10 | vim | no fix listed | UBUNTU-CVE-2026-57451 |
| Ubuntu:26.04:LTS | vim | no fix listed | UBUNTU-CVE-2026-57451 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H
References
- https://github.com/vim/vim/security/advisories/GHSA-f36c-2qcp-7gpw x_refsource_CONFIRM
- https://github.com/vim/vim/commit/b2338ca90643e2f01ecb6547c1172716aaec4f79 x_refsource_MISC
- https://github.com/vim/vim/releases/tag/v9.2.0670 x_refsource_MISC