Vimにおけるコードインジェクションの脆弱性
タイトル Vimにおけるコードインジェクションの脆弱性
概要

Vimはオープンソースのコマンドラインテキストエディタです。バージョン9.2.0699以前のVimでは、Pythonのオムニ補完機能(runtime/autoload/python3complete.vimおよび従来のpythoncomplete.vim)が補完辞書を生成する過程で、現在のバッファから再構築された関数およびクラス定義をexec()で実行していました。ソースを再構築する際、各スコープのドキュメンテーション文字列がエスケープされずにトリプルクォートでそのまま挿入されるため、悪意のあるバッファがトリプルクォートで囲まれたリテラルを抜け出し、オムニ補完中に攻撃者の制御するPythonコードを実行できてしまいます。この脆弱性はバージョン9.2.0699で修正されました。

想定される影響 ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 
対策

ベンダ情報を参照して適切な対策を実施してください。

公表日 2026年6月25日0:00
登録日 2026年6月29日11:01
最終更新日 2026年6月29日11:01
CVSS3.0 : 重要
スコア 7.8
ベクター CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
影響を受けるシステム
Vim
Vim 9.2.0699 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2026年06月29日]
  掲載
2026年6月29日11:01

NVD脆弱性情報
CVE-2026-57456
概要

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.

公表日 2026年6月26日1:16
登録日 2026年6月27日4:29
最終更新日 2026年6月26日14:16
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* 9.2.0699
関連情報、対策とツール
共通脆弱性一覧