VimにおけるOS コマンドインジェクションの脆弱性
| Title |
VimにおけるOS コマンドインジェクションの脆弱性
|
| Summary |
Vimはオープンソースのコマンドラインテキストエディタです。バージョン9.2.0276より前のバージョンには、Vimのモデルラインサンドボックスをバイパスすることで、ユーザーが細工されたファイルを開いた際に任意のOSコマンドを実行される脆弱性が存在しました。`complete`、`guitabtooltip`、および`printheader`オプションには`P_MLE`フラグが欠けていたため、モデルラインが実行可能となっていました。さらに、`mapset()`関数には`check_secure()`呼び出しが欠如しており、サンドボックス化された式から悪用される可能性がありました。コミット9.2.0276でこの問題は修正されました。
|
| Possible impacts |
当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
April 6, 2026, midnight |
| Registration Date |
April 24, 2026, 11:44 a.m. |
| Last Update |
April 24, 2026, 11:44 a.m. |
|
CVSS3.0 : 重要
|
| Score |
8.2
|
| Vector |
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
Affected System
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年04月24日] 掲載 |
April 24, 2026, 11:44 a.m. |
NVD Vulnerability Information
CVE-2026-34982
| Summary |
Vim is an open source, command line text editor. Prior to version 9.2.0276, a modeline sandbox bypass in Vim allows arbitrary OS command execution when a user opens a crafted file. The `complete`, `guitabtooltip` and `printheader` options are missing the `P_MLE` flag, allowing a modeline to be executed. Additionally, the `mapset()` function lacks a `check_secure()` call, allowing it to be abused from sandboxed expressions. Commit 9.2.0276 fixes the issue.
|
| Publication Date |
April 7, 2026, 1:16 a.m. |
| Registration Date |
April 15, 2026, 11:27 a.m. |
| Last Update |
April 23, 2026, 5:10 a.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* |
|
|
|
9.2.0276 |
Related information, measures and tools
Common Vulnerabilities List