CVE-2026-55693 Details
Description
Vim is an open source, command line text editor. Prior to 9.2.0653, the tree_count_words() function in src/spellfile.c fills in the word-count fields of a spell-file word trie by walking it iteratively with a depth counter. 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 (arridx[], curi[], wordcount[]). A crafted .spl/.sug file pair, loaded when the user invokes spell suggestion, 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.0653.
A stack out-of-bounds write vulnerability has been identified in Vim's spell file handling, specifically in versions prior to 9.2.0653. The issue arises in the 'tree_count_words()' function within 'src/spellfile.c', where the word-count fields of a spell-file word trie are populated by an iterative depth-first traversal. The depth counter is only limited by the trie structure, without any checks against the size of the fixed MAXWLEN-element stack arrays it references. This flaw allows a specially crafted pair of .spl and .sug files, loaded during spell suggestion, to drive the traversal depth beyond safe limits, causing the function to write past the end of the arrays. This out-of-bounds write corrupts the call frame and leads to a crash of the editor.
Users can update to Vim version 9.2.0653 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vim vim | < 9.2.0653 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 26, 2026 | CVE Modified | CISA-ADP |
| Jun 26, 2026 | Initial Analysis | [email protected] |
| Jun 25, 2026 | New CVE Received | [email protected] |