Vimにおけるコードインジェクションの脆弱性
| Title |
Vimにおけるコードインジェクションの脆弱性
|
| Summary |
Vimはオープンソースのコマンドラインテキストエディタです。バージョン9.2.0699以前のVimでは、Pythonのオムニ補完機能(runtime/autoload/python3complete.vimおよび従来のpythoncomplete.vim)が補完辞書を生成する過程で、現在のバッファから再構築された関数およびクラス定義をexec()で実行していました。ソースを再構築する際、各スコープのドキュメンテーション文字列がエスケープされずにトリプルクォートでそのまま挿入されるため、悪意のあるバッファがトリプルクォートで囲まれたリテラルを抜け出し、オムニ補完中に攻撃者の制御するPythonコードを実行できてしまいます。この脆弱性はバージョン9.2.0699で修正されました。
|
| Possible impacts |
・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| Solution |
ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
June 25, 2026, midnight |
| Registration Date |
June 29, 2026, 11:01 a.m. |
| Last Update |
June 29, 2026, 11:01 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 |
Affected System
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年06月29日] 掲載 |
June 29, 2026, 11:01 a.m. |
NVD Vulnerability Information
CVE-2026-57456
| Summary |
Vim is an open source, command line text editor. Prior to 9.2.0699, Vim's Python omni-completion (runtime/autoload/python3complete.vim and the legacy pythoncomplete.vim) executes reconstructed function and class definitions from the current buffer with exec() as part of populating the completion dictionary. When reconstructing that source, each scope's docstring is inserted verbatim between triple quotes with no escaping, so a hostile buffer can break out of the triple-quoted literal and execute attacker-controlled Python during omni-completion. This vulnerability is fixed in 9.2.0699.
|
| Publication Date |
June 26, 2026, 1:16 a.m. |
| Registration Date |
June 27, 2026, 4:29 a.m. |
| Last Update |
June 26, 2026, 2:16 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* |
|
|
|
9.2.0699 |
Related information, measures and tools
Common Vulnerabilities List