Skip to content
RCE Write-up Intermediate

CVE-2025–49144分析:Notepad++ Privilege Escalation 與防禦

The Notepad++ installer called the Windows utility regsvr32.exe without an absolute path, so it loaded a malicious file of the same name placed in the same folder. An attacker who gets a user to run the installer alongside that file could gain SYSTEM-level privileges.

segalee Follow

Published on medium.com

該漏洞(CVE-2025–49144)於 2025 年 6 月釋出,原理是安裝程式 (Installer) 在呼叫系統工� � regsvr32.exe 時,未指定絕對路徑,攻擊� 利用該漏洞建立一個同樣名稱為regsvr32.exe的惡意執行檔,將� �個檔案放置在同一個目錄中。當用戶執行安裝程式時,由於易受攻擊的搜尋路徑行為,安裝程式會在不知� 的� 況下載� �惡意的 regsvr32.exe。

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

Root cause

Likely the installer launched regsvr32.exe by name only, so the search order picked up a same-named file from the installer's own directory instead of the system folder.

What the attacker needed

Local access as a normal user; victim runs the installer; malicious file in same folder

The fix

It was fixed in Notepad++ 8.8.2, which should be installed instead of older versions.

How it was found

  1. Place the vulnerable Notepad++ installer and a malicious regsvr32.exe in the same folder
  2. Start the installer
  3. The installer runs the malicious file instead of the system utility
  4. The malicious file runs with SYSTEM privileges and a shell is obtained

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.

When a program starts another program, it should say exactly where that program lives. Here the installer only gave a file name, so Windows looked in the folder it was started from first. Anyone who could drop a fake file with that name next to the installer got their own code run with the highest Windows permissions.

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.