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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.2%top 94.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.23vim9.2.0854-r0ALPINE-CVE-2026-57451
Alpine:v3.24vim9.2.0677-r0ALPINE-CVE-2026-57451
Debian:14vim2:9.2.0782-1DEBIAN-CVE-2026-57451
Ubuntu:22.04:LTSvimno fix listedUBUNTU-CVE-2026-57451
Ubuntu:24.04:LTSvimno fix listedUBUNTU-CVE-2026-57451
Ubuntu:25.10vimno fix listedUBUNTU-CVE-2026-57451
Ubuntu:26.04:LTSvimno fix listedUBUNTU-CVE-2026-57451

Affected products (as reported)

VendorProductVersions
vim vim < 9.2.0670

Weakness: CWE-125 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H

References