| タイトル | notepad-plus-plusのnotepad++におけるOS コマンドインジェクションの脆弱性 |
|---|---|
| 概要 | Notepad++は無料でオープンソースのソースコードエディタです。8.9.6.1より前のバージョンでは、shortcuts.xml内のUserDefinedCommandsの中のCommandタグのテキスト内容が、feedUserCmds()関数内のNppXml::value(aNode)(Parameters.cpp:3658)によって読み取られ、検証なしにUserCommand._cmdに格納されます。ユーザーがRunメニューの対応するエントリをクリックすると、NppCommands.cpp:4264でstring2wstring(ucmd.getCmd())を用いてCommandオブジェクトが作成されrun()が呼ばれ、ShellExecute (RunDlg.cpp:221)が攻撃者が制御する文字列を実行ファイルのパスとして実行します。挿入されたコマンドはRunメニューに通常のメニュー項目として表示されるため、持続的な攻撃が可能な手段となります。この脆弱性はバージョン8.9.6.1で修正されています。 |
| 想定される影響 | ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年6月26日0:00 |
| 登録日 | 2026年6月30日11:20 |
| 最終更新日 | 2026年6月30日11:20 |
| CVSS3.0 : 重要 | |
| スコア | 7.8 |
|---|---|
| ベクター | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| notepad-plus-plus |
| notepad++ 8.9.6.1 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月30日] 掲載 |
2026年6月30日11:20 |
| 概要 | Notepad++ is a free and open-source source code editor. Prior to 8.9.6.1, the <Command> tag text content inside <UserDefinedCommands> in shortcuts.xml is read by NppXml::value(aNode) (Parameters.cpp:3658) in the feedUserCmds() function and stored in UserCommand._cmd without any validation. When the user clicks the corresponding entry in the Run menu, NppCommands.cpp:4264 creates a Command object with string2wstring(ucmd.getCmd()) and calls run(), which invokes ShellExecute (RunDlg.cpp:221) with the attacker-controlled string as the executable path. The injected command appears as a normal menu item in the Run menu, making it a viable persistence mechanism. This vulnerability is fixed in 8.9.6.1. |
|---|---|
| 公表日 | 2026年6月27日6:16 |
| 登録日 | 2026年6月29日4:17 |
| 最終更新日 | 2026年6月30日3:51 |