Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-57451 EUVD-2026-39449

Vim: Out-of-bounds Read in Text Property Count

Published Jun 25, 2026 · Updated Jun 25, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
vim vim < 9.2.0670 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 vim 2:9.2.0782-1 —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 vim +8 9.2.967-1.1.hum1 RHSA-2026:57614
ReleasePackageFixed inAdvisory
Alpine v3.24 vim 9.2.0677-r0 —
Alpine v3.23 vim 9.2.0854-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 xxd +6 2:9.2.725-1.amzn2023.0.1 ALAS2023-2026-1940

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 vim 9.2.0735-1 —

Advisories 3

References