| Title | Vimにおける境界外書き込みに関する脆弱性 |
|---|---|
| Summary | Vimはオープンソースのコマンドラインテキストエディタです。バージョン9.2.0653以前では、src/spellfile.c内のtree_count_words()関数が、スペルファイルの単語トライの単語カウントフィールドを反復的に深さカウンターを用いて埋めます。このカウンターはトライ構造そのものによってのみ制限されており、固定長MAXWLEN要素のスタック配列(arridx[]、curi[]、wordcount[])のサイズとは照合されません。ユーザがスペル提案を呼び出す際に読み込まれる巧妙に作成された.spl/.sugファイルの組み合わせによって、下降が任意に深く駆動され、この関数がこれらの配列の範囲外に書き込む可能性があります。これはスタックの境界外書き込みであり、コールフレームを破壊してエディタをクラッシュさせます。この脆弱性はバージョン9.2.0653で修正されました。 |
| Possible impacts | ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| Solution | ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | June 25, 2026, midnight |
| Registration Date | June 29, 2026, 11:10 a.m. |
| Last Update | June 29, 2026, 11:10 a.m. |
| CVSS3.0 : 重要 | |
| Score | 7.8 |
|---|---|
| Vector | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Vim |
| Vim 9.2.0653 未満 |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年06月29日] 掲載 |
June 29, 2026, 11:10 a.m. |
| Summary | 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. |
|---|---|
| Publication Date | June 26, 2026, 1:16 a.m. |
| Registration Date | June 27, 2026, 4:29 a.m. |
| Last Update | June 26, 2026, 11:17 p.m. |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* | 9.2.0653 | ||||