Skip to content

CVE-2026-57451 Vim: Out-of-bounds Read in Text Property Count

MediumCVSS 6.1 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
DebianRed Hat

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.

Upgrade path

9 packages: 5 fixed, 1 partially fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 4) All versions No fix listed No fix yet
redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 5) All versions No fix listed No fix yet
redhat/vim(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
azure linux vim(Azure Linux 3.0) < 9.2.0735-1; All versions 9.2.0735-1 Partially fixed
alpine/vim(Alpine v3.23) >= 9.2.0320, < 9.2.0854-r0 9.2.0854-r0 Fixed
alpine/vim(Alpine v3.24) >= 9.2.0320, < 9.2.0677-r0 9.2.0677-r0 Fixed
debian/vim(Debian 14) < 2:9.2.0782-1; = 2:9.1.1230-2; = 2:9.1.1385-1; = 2:9.1.1766-1 +14 more 2:9.2.0782-1 Fixed
redhat/vim-main(Red Hat hummingbird 1) < 9.2.967-1.1.hum1 9.2.967-1.1.hum1 Fixed
vim = < 9.2.0670; >= 9.2.0320, < 9.2.0670 9.2.0670 Fixed

Affected products

ProductAffected versionsFixed in
vim = < 9.2.0670 No fix listed
redhat/vim-main(Red Hat:hummingbird:1) < 9.2.967-1.1.hum1 9.2.967-1.1.hum1
redhat/vim(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/rhoai/odh-dashboard-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:4) All versions No fix listed
redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:5) All versions No fix listed
debian/vim(Debian:14) < 2:9.2.0782-1 2:9.2.0782-1
vim >= 9.2.0320, < 9.2.0670 9.2.0670
azure linux vim(Azure Linux:3.0) < 9.2.0735-1 9.2.0735-1
azure linux vim(Azure Linux:3.0) All versions No fix listed
debian/vim(Debian:14) = 2:9.1.1230-2 No fix listed
debian/vim(Debian:14) = 2:9.1.1385-1 No fix listed
debian/vim(Debian:14) = 2:9.1.1766-1 No fix listed
debian/vim(Debian:14) = 2:9.1.1829-1 No fix listed
debian/vim(Debian:14) = 2:9.1.1846-1 No fix listed
debian/vim(Debian:14) = 2:9.1.1882-1 No fix listed
debian/vim(Debian:14) = 2:9.1.2103-1 No fix listed
debian/vim(Debian:14) = 2:9.1.2141-1 No fix listed
debian/vim(Debian:14) = 2:9.2.0119-1 No fix listed
debian/vim(Debian:14) = 2:9.2.0136-1 No fix listed
debian/vim(Debian:14) = 2:9.2.0218-1 No fix listed
debian/vim(Debian:14) = 2:9.2.0315-1 No fix listed
debian/vim(Debian:14) = 2:9.2.0338-1 No fix listed
debian/vim(Debian:14) = 2:9.2.0355-1 No fix listed
debian/vim(Debian:14) = 2:9.2.0428-1 No fix listed
Show 4 more
ProductAffected versionsFixed in
debian/vim(Debian:14) = 2:9.2.0461-1 No fix listed
debian/vim(Debian:14) = 2:9.2.0524-1 No fix listed
alpine/vim(Alpine:v3.23) >= 9.2.0320, < 9.2.0854-r0 9.2.0854-r0
alpine/vim(Alpine:v3.24) >= 9.2.0320, < 9.2.0677-r0 9.2.0677-r0

References