*CVE-2025-49144: Privilege Escalation in Notepad++ v8.8.1 Installer and RCE with SYSTEM Privileges*
The Notepad++ v8.8.1 installer calls regsvr32.exe without a full path, so it searches the current directory first. An attacker who places a malicious regsvr32.exe in a user-writable folder can have it executed with SYSTEM privileges when the installer runs.
Published on osintteam.blog
Notepad++ has long been a beloved text editor among developers, system administrators, and writers who appreciate its lightweight design, robust plugin support, and open-source nature. Built on the Scintilla editing component, it offers advanced syntax highlighting, multi-document tabs, and an active community-driven…
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
The installer used a relative path for regsvr32.exe instead of the full system path, so Windows searched the current working directory before system folders.
Impact
An attacker with a standard user account could escalate to SYSTEM privileges, potentially leading to lateral movement, disabling security controls, or deploying ransomware.
What the attacker needed
Local user access to Windows; ability to write to a folder the installer searches; user runs the installer; Real-time Protection disabled
How it was found
- Prepare a Kali Linux attacker machine and a Windows 10 target with Notepad++ v8.8.1 installer.
- Install mingw-w64 on Kali.
- Write a reverse shell in C and save it as poc.c.
- Compile poc.c into a Windows executable named regsvr32.exe using clang.
- Host the malicious regsvr32.exe on a web server and download it to the Windows Downloads folder.
- Start a netcat listener on Kali.
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 use the full, fixed location of that program. Here, the installer just said 'run regsvr32.exe' and Windows looked in the current folder first. If an attacker puts a fake regsvr32.exe there, the installer runs the fake one with high privileges.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.