VDB

CVE-2026-57451

CVE-2026-57451 PUBLISHED CVSS 5.3 MEDIUM

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.

PackageEcosystemFixed in
vim-commonAmazon Linux2:9.2.725-1.amzn2023.0.1
vim-enhancedAmazon Linux2:9.2.725-1.amzn2023.0.1
vim-minimalAmazon Linux2:9.2.725-1.amzn2023.0.1
vim-filesystemAmazon Linux2:9.2.725-1.amzn2023.0.1
vimAlpine9.2.0854-r0, 9.2.0677-r0
vimvim9.2.0670

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H

Affected products

VendorProductVersions
vimvim< 9.2.0670
amazon:2023vim-common0
amazon:2023vim-enhanced0
amazon:2023vim-minimal0
amazon:2023vim-filesystem0
alpinevim0, 0
vimvim0
amazon:2023xxd0
amazon:2023vim-default-editor0
amazon:2023vim-data0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›