RDP Known Vulnerability Detection
BlueKeep (CVE-2019-0708) and DejaBlue (CVE-2019-1181/1182) are pre-authentication unauthenticated RCE vulnerabilities in Windows Remote Desktop Services. The safe check scans confirm exploitability without triggering the vulnerability. Run these before attempting any exploitation path — a positive result changes the priority of the host significantly.
Version fingerprinting to scope applicable CVEs
Before running CVE-specific checks, identify the Windows version to determine which CVEs apply.
BlueKeep (CVE-2019-0708) affects:
Windows XP, Windows Vista, Windows 7
Windows Server 2003, Windows Server 2008, Windows Server 2008 R2
DejaBlue (CVE-2019-1181, CVE-2019-1182) affects:
Windows 8, Windows 8.1, Windows 10
Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019
Both families were patched in 2019. Unpatched hosts in either version range are viable targets. If the version is Windows 10 or Server 2016/2019, focus on DejaBlue. If it is Windows 7 or Server 2008 R2, BlueKeep is the primary path.
BlueKeep detection (CVE-2019-0708)
The Metasploit auxiliary scanner is the standard check. It is a safe detection-only scan — it confirms the MS_T120 channel binding behavior without triggering the UAF.
Warning
This may be restricted in exams such as OSCP. Metasploit modules are limited to one machine per exam.
[+] 10.10.10.10:3389 - The target is vulnerable. The target attempted cleanup of the incorrectly-bound MS_T120 channel. [-] 10.10.10.20:3389 - The target is not exploitable.
A positive result confirms the host is unpatched. Move to BlueKeep CVE-2019-0708 Exploitation.
rdpscan provides a faster, dependency-free alternative:
10.10.10.10 - VULNERABLE -- got appid 10.10.10.20 - SAFE
For subnet-wide scanning:
DejaBlue detection (CVE-2019-1181/1182)
The Metasploit auxiliary scanner covers DejaBlue detection:
Warning
This may be restricted in exams such as OSCP. Metasploit modules are limited to one machine per exam.
[+] 10.10.10.10:3389 - The target is vulnerable.
A positive result on Windows 8 or later confirms the host is unpatched for CVE-2019-1181. No stable public RCE exploit exists for DejaBlue as of writing — the finding is reportable as critical but exploitation falls back to credentialed paths. See DejaBlue CVE-2019-1181 for what is available.
Running both checks together
When the Windows version is uncertain, run both scanners sequentially.
rdpscan covers both BlueKeep and some DejaBlue detection in a single pass and is faster for quick subnet sweeps:
Patch level check via SMB
If credentials are available, the Windows build number from SMB output can confirm patch status without running a CVE scanner.
Match the build in the output against patched builds:
Version | Patched build (BlueKeep / DejaBlue) |
|---|---|
Windows 7 SP1 | 7601.24441 (May 2019) |
Windows Server 2008 R2 SP1 | 7601.24441 (May 2019) |
Windows 10 1809 | 17763.678 (August 2019) |
Windows Server 2016 | 14393.3143 (August 2019) |
Windows Server 2019 | 17763.678 (August 2019) |
Builds below the patched threshold on the matching version are unpatched.
References
-
Microsoft MSRC advisory with affected versions and patch references
-
Microsoft MSRC advisory with affected versions and patch references
-
Fast RDP vulnerability scanner for BlueKeep and DejaBlue family detection
-
Metasploit BlueKeep scannergithub.com/rapid7/metasploit-framework/tree/master/modules/auxiliaries/scanner/rdp (opens in new tab)
Safe auxiliary detection module
Was this helpful?
Your feedback helps improve this page.