Skip to content
RCE Write-up Intermediate

*CVE-2026–48778 分析:Notepad++漏洞允許攻擊者執行任意指令*

Notepad++ versions up to 8.9.6 read a GUI setting from config.xml without validating it, and later pass that value to the Windows ShellExecute API when the user runs the 'open cmd in containing folder' feature. An attacker who can tamper with the config file, for example through a portable build bundled in a downloaded archive, could run arbitrary commands with the user's privileges.

segalee Follow

Published on medium.com

當使用� 在常規開發或維運流程中觸發 開啟所在資料夾下的 cmd 功能時,將以 Notepad++ 當前的權限無聲執行惡意程式碼 因為該漏洞的觸發機制是,� 須讓受害� 手動執行 開啟所在資料夾下的 cmd 功能,而一般文書使用� 並不會去執行這個功能,所以評估此漏洞攻擊的對象會偏向開發� � 多,關於該漏洞的詳細資訊可以參考以下文章

segalee, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

What the attacker needed

Notepad++ v8.9.6 or earlier; Attacker can modify config.xml; Victim runs open-cmd feature

How it was found

  1. Modify the config.xml file and add a calculator command to the relevant GUI setting.
  2. Open a text file in Notepad++.
  3. Use File > Open Containing Folder > cmd.
  4. The calculator starts.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Notepad++ is a text editor. It keeps some of its settings in a file called config.xml. This report says the editor trusted a command stored in that file and ran it when the user asked to open a command prompt in the file's folder. Someone who could change that settings file could therefore make the editor start their own program.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by segalee

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.