VDB

CVE-2026-55892

CVE-2026-55892 PUBLISHED CVSS 5.5 MEDIUM

Vim: Out-of-bounds Write in Spell File Prefix Dump

Reported by github_m · Published June 25, 2026

Vim is an open source, command line text editor. Prior to 9.2.0662, the dump_prefixes() function in src/spell.c walks a spell-file prefix trie iteratively with a depth counter while dumping the prefixes that apply to a word. The counter is bounded only by the trie structure itself; it is never checked against the size of the fixed MAXWLEN-element stack arrays it indexes (prefix[], arridx[], curi[]). A crafted .spl file, loaded when the user dumps the word list, can drive the descent arbitrarily deep, so the function writes past the end of those arrays. This is a stack out-of-bounds write that corrupts the call frame and crashes the editor. This vulnerability is fixed in 9.2.0662.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
vimerrata.rockylinux.org9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8
vim-enhancedAmazon Linux2:9.2.725-1.amzn2023.0.1
vim-minimalerrata.rockylinux.org9.1.083-9.el10, 8.2.2637-26.el9
xxderrata.rockylinux.org9.1.083-9.el10
vim-minimal-debuginfoerrata.rockylinux.org9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8
vim-commonerrata.rockylinux.org9.1.083-9.el10, 8.2.2637-26.el9
vim-debugsourceerrata.rockylinux.org9.1.083-9.el10, 8.0.1763-31.el8
vim-enhanced-debuginfoerrata.rockylinux.org9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8
vim-filesystemAmazon Linux2:9.2.725-1.amzn2023.0.1, 2:9.0.2153-1.amzn2.0.11
vim-enhancederrata.rockylinux.org9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8
vim-X11-debuginfoerrata.rockylinux.org9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8
vim-debuginfoerrata.rockylinux.org9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8

11 more packages have a fixed version. See every fix in Lookup.

Risk scores

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

Affected products

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

Timeline

  • Jun 25, 2026 CVE Published
  • Jun 26, 2026 EPSS Score (10 in total, the first dated here)
  • Jun 29, 2026 Security Advisory (6 in total, the first dated here)
  • Aug 11, 2026 Distribution Patch (8 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-55892
vulnetix vdb fixes CVE-2026-55892

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-55892/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 ›