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.
該漏洞(CVE-2025–49144)於 2025 年 6 月釋出,原理是安裝程式 (Installer) 在呼叫系統工� � regsvr32.exe 時,未指定絕對路徑,攻擊� 利用該漏洞建立一個同樣名稱為regsvr32.exe的惡意執行檔,將� �個檔案放置在同一個目錄中。當用戶執行安裝程式時,由於易受攻擊的搜尋路徑行為,安裝程式會在不知� 的� 況下載� �惡意的 regsvr32.exe。
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
- Place the vulnerable Notepad++ installer and a malicious regsvr32.exe in the same folder
- Start the installer
- The installer runs the malicious file instead of the system utility
- 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.