{"id":"JLSEC-2026-1880","details":"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.","modified":"2026-12-02T14:45:11.705201365Z","published":"2026-12-02T14:32:56.182Z","upstream":["CVE-2026-55693","EUVD-2026-39452"],"database_specific":{"license":"CC-BY-4.0","sources":[{"html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55693","database_specific":{"status":"Analyzed"},"affected":{"vim:vim":["\u003c 9.2.0653"]},"id":"CVE-2026-55693","imported":"2026-12-02T14:11:18.580Z","modified":"2026-06-26T14:17:05.597Z","published":"2026-06-25T16:16:40.220Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-55693"},{"imported":"2026-12-02T14:11:19.997Z","modified":"2026-06-26T14:03:18Z","published":"2026-06-25T15:34:33Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-39452","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-39452","affected":{"vim:vim":["\u003c 9.2.0653"]},"id":"EUVD-2026-39452"}]},"references":[{"type":"WEB","url":"https://github.com/vim/vim/commit/a80874d9b84a01040e3d1aef2d4a59e1934dafb7"},{"type":"WEB","url":"https://github.com/vim/vim/releases/tag/v9.2.0653"},{"type":"WEB","url":"https://github.com/vim/vim/security/advisories/GHSA-wgh4-64f7-q3jq"}],"affected":[{"package":{"name":"Vim_jll","ecosystem":"Julia","purl":"pkg:julia/Vim_jll?uuid=1e82aed4-b73c-514c-b6b0-721e3fbe9c02"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1880.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"NVD"},{"type":"CVSS_V4","score":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"CNA"}]}