JLSEC-2026-1881: Medium severity julia/vim_jll vulnerability
Vim is an open source, command line text editor. Prior to 9.2.0662, the dumpprefixes() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Vimto a version that resolves this vulnerability.Fixed in 9.2.0662
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of julia/vim_jll that include a Vim version earlier than 9.2.0662 are affected when they load a crafted .spl spell file and dump the word list.
What does an attacker need to trigger the crash?
The attacker needs to provide a malicious .spl spell file that causes an unusually deep prefix trie traversal. User interaction is required to load that file and invoke the word-list dump operation.
Is this reachable through normal editing alone?
The provided information identifies the affected path specifically as dumping the word list after loading a crafted spell file. It does not indicate that ordinary editing without that operation triggers the issue.
What should be done if upgrading is not immediately possible?
Do not load untrusted .spl spell files, and avoid dumping word lists for spell files whose origin or contents are not trusted. Upgrade to Vim 9.2.0662 when possible.