# CVE-2026-55693: Vim: Out-of-bounds Write in Spell File Word Count

- Severity: Medium 5.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-25T15:34:33.424Z
- Modified: 2026-06-26T14:17:05.597Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0653; before 9.2.0653

## Every score

- GitHub_M: CVSS:4.0 5.7 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-wgh4-64f7-q3jq> (vendor-advisory)
- <https://github.com/vim/vim/commit/a80874d9b84a01040e3d1aef2d4a59e1934dafb7> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0653> (product)

## Sources

- CVE List: [CVE-2026-55693](https://www.cve.org/CVERecord?id=CVE-2026-55693), CVE Terms of Use, modified 2026-06-26
- NVD: [CVE-2026-55693](https://nvd.nist.gov/vuln/detail/CVE-2026-55693), Public domain, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-55693 · Whole record: https://cve.day/CVE-2026-55693.json · Rebuilt by cve.day 2026-11-25T22:59:26.378Z
