CVE-2026-57451
Vim: Out-of-bounds Read in Text Property Count
Reported by github_m · Published June 25, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-common | Amazon Linux | 2:9.2.725-1.amzn2023.0.1 |
| vim-enhanced | Amazon Linux | 2:9.2.725-1.amzn2023.0.1 |
| vim-minimal | Amazon Linux | 2:9.2.725-1.amzn2023.0.1 |
| vim-filesystem | Amazon Linux | 2:9.2.725-1.amzn2023.0.1 |
| vim | Alpine | 9.2.0854-r0, 9.2.0677-r0 |
| vim | vim | 9.2.0670 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.2.0670 |
| amazon:2023 | vim-common | 0 |
| amazon:2023 | vim-enhanced | 0 |
| amazon:2023 | vim-minimal | 0 |
| amazon:2023 | vim-filesystem | 0 |
| alpine | vim | 0, 0 |
| vim | vim | 0 |
| amazon:2023 | xxd | 0 |
| amazon:2023 | vim-default-editor | 0 |
| amazon:2023 | vim-data | 0 |
Timeline
- Jun 25, 2026 CVE Published
- Jun 25, 2026 CVE Updated
- Jun 26, 2026 EPSS Score (11 in total, the first dated here)
- Jun 26, 2026 Coalition ESS Score
- Jun 29, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-57451
vulnetix vdb fixes CVE-2026-57451
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-57451/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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