CVE-2026-55892
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim | errata.rockylinux.org | 9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8 |
| vim-enhanced | Amazon Linux | 2:9.2.725-1.amzn2023.0.1 |
| vim-minimal | errata.rockylinux.org | 9.1.083-9.el10, 8.2.2637-26.el9 |
| xxd | errata.rockylinux.org | 9.1.083-9.el10 |
| vim-minimal-debuginfo | errata.rockylinux.org | 9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8 |
| vim-common | errata.rockylinux.org | 9.1.083-9.el10, 8.2.2637-26.el9 |
| vim-debugsource | errata.rockylinux.org | 9.1.083-9.el10, 8.0.1763-31.el8 |
| vim-enhanced-debuginfo | errata.rockylinux.org | 9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8 |
| vim-filesystem | Amazon Linux | 2:9.2.725-1.amzn2023.0.1, 2:9.0.2153-1.amzn2.0.11 |
| vim-enhanced | errata.rockylinux.org | 9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8 |
| vim-X11-debuginfo | errata.rockylinux.org | 9.1.083-9.el10, 8.2.2637-26.el9, 8.0.1763-31.el8 |
| vim-debuginfo | errata.rockylinux.org | 9.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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.2.0662 |
| amazon:2023 | vim-enhanced | 0 |
| amazon:2 | vim-filesystem | 0 |
| amazon:2023 | xxd | 0 |
| amazon:2023 | vim-filesystem | 0 |
| alpine | vim | 0, 0 |
| amazon:2 | vim-data | 0 |
| amazon:2023 | vim-data | 0 |
| amazon:2023 | vim-default-editor | 0 |
| amazon:2 | vim-minimal | 0 |
| amazon:2 | xxd | 0 |
| vim | vim | 0 |
| amazon:2023 | vim-minimal | 0 |
| amazon:2 | vim-X11 | 0 |
| amazon:2 | vim-enhanced | 0 |
| amazon:2023 | vim-common | 0 |
| amazon:2 | vim-common | 0 |
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
References
- https://github.com/vim/vim/security/advisories/GHSA-qm9w-fmpj-879h x_refsource_CONFIRM
- https://github.com/vim/vim/commit/8325b193bba5f01e7a7d8241f x_refsource_MISC
- https://github.com/vim/vim/releases/tag/v9.2.0662 x_refsource_MISC