CVE-2026-55892

Medium

Description

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductVim
PublishedJun 25, 2026
First seenJun 25, 2026

How to fix

Update
  • vim vim9.2.0662 or later

Affected products

ProductAffected versionsFixed in
vim vimv < 9.2.06629.2.0662

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-55892 · Vim · Dark Radar