製品・ソフトウェアに関する情報
notepad-plus-plusのnotepad++におけるOS コマンドインジェクションの脆弱性
Title notepad-plus-plusのnotepad++におけるOS コマンドインジェクションの脆弱性
Summary

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で修正されています。

Possible impacts ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 
Solution

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

Publication Date June 26, 2026, midnight
Registration Date June 30, 2026, 11:20 a.m.
Last Update June 30, 2026, 11:20 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
notepad-plus-plus
notepad++ 8.9.6.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年06月30日]
  掲載
June 30, 2026, 11:20 a.m.

NVD Vulnerability Information
CVE-2026-48800
Summary

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.

Publication Date June 27, 2026, 6:16 a.m.
Registration Date June 29, 2026, 4:17 a.m.
Last Update June 30, 2026, 3:51 a.m.
Related information, measures and tools
Common Vulnerabilities List