CVE-2026-57451 Vim: Out-of-bounds Read in Text Property Count
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/vim/vim/security/advisories/GHSA-f36c-2qcp-7gpw vendor-advisory
- https://github.com/vim/vim/commit/b2338ca90643e2f01ecb6547c1172716aaec4f79 patch
- https://github.com/vim/vim/releases/tag/v9.2.0670 product
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:57614 patch vendor-advisory
- Red Hat Bugzilla 2492978 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-57451 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking