Threat reportVulnerabilityTL-2026-3828
RDP Gateway pre-auth RCE via UDP fragment reassembly flaws (CVE-2020-0609, CVE-2020-0610)
Two separate pre-authentication remote code execution bugs in the Windows Remote Desktop Gateway (RD Gateway) UDP transport (default UDP/3391). CVE-2020-0609 is a bounds-checking failure in fragment reassembly that allows writes of up to 999 bytes at attacker-controlled heap offsets; CVE-2020-0610 is an out-of-bounds array write when tracking received fragments. First disclosed .
Key facts
| Identifiers | TL-2026-3828, CVE-2020-0609, CVE-2020-0610 |
|---|---|
| Also known as | BlueGate |
| Severity | CRITICAL |
| CVSS | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| First disclosed | |
| Exploitation status | Public proof-of-concept exploit for a linked CVE |
| EPSS | CVE-2020-0609: 77.6% (99.5th percentile); CVE-2020-0610: 67.5% (99.3th percentile) |
| Affected products | Microsoft Windows Server (Remote Desktop Gateway role) |
| Weaknesses (CWE) | CWE-787 |
| Tools | BlueGate, RDGScanner |
| MITRE ATT&CK techniques | T1133 External Remote Services, T1190 Exploit Public-Facing Application, T1499.004 Application or System Exploitation, T1595.002 Vulnerability Scanning |
| Motivation | UNKNOWN |
| Detection rules | 9 (1 shown free) |
| Sources | 9 cited sources |
Detection coverage
As of 2026-10-17, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3828 across Splunk SPL, Microsoft KQL and Sigma, covering 9 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: RD Gateway Child Process Execution and BlueGate/RDGScanner Tooling [SPL]
Detects post-exploitation on RD Gateway hosts (shell or LOLBin spawned by the TSGateway svchost instance) and execution or download of the public BlueGate PoC and RDGScanner scanner for CVE-2020-0609/CVE-2020-0610.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1059.001, T1059.003, T1105, T1210, T1595.002
- Data sources: sysmon EventCode 1, DeviceProcessEvents, windows process_creation
- Severity: high
- Confidence: high
Splunk SPL
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1
((ParentImage="*\\svchost.exe" ParentCommandLine="*TSGateway*" (Image="*\\cmd.exe" OR Image="*\\powershell.exe" OR Image="*\\pwsh.exe" OR Image="*\\rundll32.exe" OR Image="*\\mshta.exe" OR Image="*\\certutil.exe" OR Image="*\\bitsadmin.exe" OR Image="*\\wmic.exe" OR Image="*\\regsvr32.exe"))
OR ((Image="*\\python.exe" OR Image="*\\python3.exe" OR Image="*\\py.exe") (CommandLine="*RDGScanner*" OR CommandLine="*BlueGate*"))
OR CommandLine="*ollypwn/BlueGate*" OR CommandLine="*MalwareTech/RDGScanner*")
| eval detection_branch=if(match(ParentCommandLine, "TSGateway"), "rd_gateway_child_process", "bluegate_rdgscanner_tool")
| table _time host User ParentImage ParentCommandLine Image CommandLine detection_branchMicrosoft KQL
DeviceProcessEvents
| where Timestamp > ago(24h)
| where (InitiatingProcessFileName =~ "svchost.exe" and InitiatingProcessCommandLine has "TSGateway"
and FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe", "rundll32.exe", "mshta.exe", "certutil.exe", "bitsadmin.exe", "wmic.exe", "regsvr32.exe"))
or (FileName in~ ("python.exe", "python3.exe", "py.exe", "python3", "python") and ProcessCommandLine has_any ("RDGScanner", "BlueGate"))
or ProcessCommandLine has_any ("ollypwn/BlueGate", "MalwareTech/RDGScanner")
| extend DetectionBranch = iff(InitiatingProcessCommandLine has "TSGateway", "rd_gateway_child_process", "bluegate_rdgscanner_tool")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, DetectionBranch
| order by Timestamp descSigma
title: RD Gateway Service Host Spawning Shell or BlueGate/RDGScanner Tool Execution
id: 9a3b7d10-84c2-4e6f-a1d5-e2b4c7f09a68
status: experimental
description: Detects a shell or LOLBin spawned by the svchost.exe instance hosting the TSGateway service, which indicates code execution after CVE-2020-0609/CVE-2020-0610 exploitation, and execution or download of the public BlueGate PoC and RDGScanner scanner.
references:
- https://www.kryptoslogic.com/blog/2020/01/rdp-to-rce-when-fragmentation-goes-wrong/
- https://nvd.nist.gov/vuln/detail/CVE-2020-0609
- https://nvd.nist.gov/vuln/detail/CVE-2020-0610
- https://github.com/ollypwn/BlueGate
- https://github.com/MalwareTech/RDGScanner
author: Threadlinqs Team
date: 2026-10-17
tags:
- attack.execution
- attack.t1059.001
- attack.t1059.003
- attack.lateral_movement
- attack.t1210
- attack.command_and_control
- attack.t1105
- attack.reconnaissance
- attack.t1595.002
- cve.2020.0609
- cve.2020.0610
logsource:
category: process_creation
product: windows
detection:
selection_rdg_child:
ParentImage|endswith: '\svchost.exe'
ParentCommandLine|contains: 'TSGateway'
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
- '\pwsh.exe'
- '\rundll32.exe'
- '\mshta.exe'
- '\certutil.exe'
- '\bitsadmin.exe'
- '\wmic.exe'
- '\regsvr32.exe'
selection_tool_python:
Image|endswith:
- '\python.exe'
- '\python3.exe'
- '\py.exe'
CommandLine|contains:
- 'RDGScanner'
- 'BlueGate'
selection_tool_url:
CommandLine|contains:
- 'ollypwn/BlueGate'
- 'MalwareTech/RDGScanner'
condition: selection_rdg_child or selection_tool_python or selection_tool_url
falsepositives:
- Authorized red team or vulnerability management staff running RDGScanner or BlueGate
- Administrators running maintenance scripts through the gateway service account
level: high
Known false positives:
- Authorized penetration testers or vulnerability management teams running RDGScanner/BlueGate
- Administrative scripts executed under the gateway service context
Tuning notes: Restrict the gateway-child branch to hosts that run the RD Gateway role (the TSGateway service group name in the svchost command line) and baseline legitimate children. Allowlist approved red-team hosts for the RDGScanner/BlueGate tool branch. Requires Sysmon EventCode 1 or Defender for Endpoint process telemetry with full command lines.
- RD Gateway UDP/3391 External Probe or Exploit Traffic (CVE-2020-0609/0610) [KQL] · unlock with TL Creds
- RD Gateway Crash Consistent With CVE-2020-0609/0610 Fragment Exploitation or BlueGate DoS [KQL] · unlock with TL Creds
- RD Gateway Child Process Execution and BlueGate/RDGScanner Tooling [KQL] · unlock with TL Creds
- RD Gateway UDP/3391 External Probe or Exploit Traffic (CVE-2020-0609/0610) [Sigma] · unlock with TL Creds
- RD Gateway Crash Consistent With CVE-2020-0609/0610 Fragment Exploitation or BlueGate DoS [Sigma] · unlock with TL Creds
- RD Gateway Child Process Execution and BlueGate/RDGScanner Tooling [Sigma] · unlock with TL Creds
- RD Gateway UDP/3391 External Probe or Exploit Traffic (CVE-2020-0609/0610) [SPL] · unlock with TL Creds
- RD Gateway Crash Consistent With CVE-2020-0609/0610 Fragment Exploitation or BlueGate DoS [SPL] · unlock with TL Creds
Indicators of compromise
As of 2026-10-17, Threadlinqs Intelligence tracks 9 indicators of compromise for TL-2026-3828.
Technical analysis
Microsoft patched both in the January 2020 security update; public DoS PoC and scanner code (BlueGate, RDGScanner) followed within two weeks.
Windows Remote Desktop Gateway (Terminal Services Gateway) brokers RDP connections over HTTP, HTTPS and a UDP transport. Kryptos Logic analyzed the UDP handler and found two distinct memory-corruption flaws reachable before authentication and with no user interaction. The RDG-UDP protocol splits large messages across multiple UDP packets that may arrive out of order; each packet carries a fragment_id (position), num_fragments (total) and fragment_length. The reassembly logic fails to properly validate these attacker-supplied values.
CVE-2020-0609 (heap out-of-bounds write): the reassembly buffer is allocated at 1000 bytes and each fragment is copied with memcpy_s to an offset computed as fragment_id x 1000, but the bounds check ignores that offset. An attacker can therefore write 999 bytes to any offset from 1 up to roughly 65,534,000 bytes beyond the end of the buffer. This is a precise, controlled write primitive rather than a linear overflow.
CVE-2020-0610 (out-of-bounds array write): the array that records which fragments have been received has only 64 entries, yet fragment_id may range from 0 to 65535. Any fragment_id between 65 and 65535 writes a 1 (TRUE) outside the array bounds, giving a single-byte out-of-bounds write that can alter program behavior.
Exploitation status: neither the Kryptos Logic post nor NVD states in-the-wild exploitation, and no threat actor attribution is reported. On 2020-01-26 a researcher using the pseudonym Ollypwn published BlueGate on GitHub, a PoC that can cause denial of service and includes a vulnerability check mode; Marcus Hutchins (MalwareTech) published RDGScanner, which detects vulnerable servers by sending a CONNECT_PKT_FRAGMENT message with num_fragments above 64 (patched hosts disconnect with error 0x8000ffff, vulnerable hosts allow the connection). Qualys reported that a researcher had developed a working RCE exploit that had not been publicly released, and that over 15,000 vulnerable RD Gateway servers were reachable online at the time of reporting. Exposure requires inbound TCP/443 plus UDP/3391 to the gateway. Mitigations from the source: install the January 2020 update, or disable UDP transport in the RD Gateway settings / firewall UDP/3391.
MITRE ATT&CK techniques by tactic:
Initial Access
T1133 External Remote Services; T1190 Exploit Public-Facing Application
Impact
T1499.004 Application or System Exploitation
Reconnaissance
Remediation
Patches
- Windows Server 2012: KB4534283 (Monthly Rollup) / KB4534288 (Security-Only)
- Windows Server 2012 R2: KB4534297 (Monthly Rollup) / KB4534309 (Security-Only)
- Windows Server 2016: KB4534271
- Windows Server 2019: KB4534273
Immediate actions
- Install the January 2020 Microsoft security update on every Windows Server running the RD Gateway role
- If patching is not possible, disable UDP Transport in the RD Gateway settings
- Firewall inbound UDP/3391 to RD Gateway servers
Workarounds
- Disable UDP Transport in RD Gateway
- Block UDP port 3391 at the perimeter
Longer-term hardening
- Inventory internet-exposed RD Gateway servers and restrict exposure to required source ranges
- Monitor UDP/3391 traffic to RD Gateway hosts for malformed or abnormal fragment parameters and for gateway process crashes
Affected and fixed versions
- Microsoft — Windows Server (Remote Desktop Gateway role)
Vulnerable versions: 2012; 2012 R2; 2016; 2019
Fixed in: 2012 with KB4534283/KB4534288; 2012 R2 with KB4534297/KB4534309; 2016 with KB4534271; 2019 with KB4534273
Timeline
- Microsoft releases January 2020 Patch Tuesday updates fixing CVE-2020-0609 and CVE-2020-0610 in Windows Remote Desktop Gateway; NVD publishes both CVEs with CVSS 3.1 score 9.8.
- Kryptos Logic publishes 'RDP to RCE: When Fragmentation Goes Wrong' detailing the UDP fragment reassembly heap out-of-bounds write (0609) and the 64-entry array out-of-bounds write (0610).
- Press reports over 15,000 vulnerable RD Gateway servers reachable from the internet at the time of reporting.
- Marcus Hutchins (MalwareTech) releases RDGScanner, which detects vulnerable gateways by sending a CONNECT_PKT_FRAGMENT with num_fragments above 64.
- Researcher Ollypwn publishes the BlueGate PoC on GitHub, providing a denial-of-service mode and a vulnerability check mode for both CVEs.
- Qualys ThreatPROTECT publishes patch/KB mapping and detection (QID 91596), noting a working RCE exploit exists privately but has not been publicly released.
Sources cited
- NVD - CVE-2020-0609 NVD (NIST) · Advisory · 2020-01-14
- NVD - CVE-2020-0610 NVD (NIST) · Advisory · 2020-01-14
- RDP to RCE: When Fragmentation Goes Wrong kryptoslogic.com · Research · 2020-01-18
- Microsoft MSRC - CVE-2020-0609 Microsoft Security Response Center · Vendor report · 2020-01-14
- Microsoft MSRC - CVE-2020-0610 Microsoft Security Response Center · Vendor report · 2020-01-14
- BlueGate PoC (ollypwn) - DoS and check mode for CVE-2020-0609/0610 GitHub · Proof of concept · 2020-01-26
- RDGScanner (MalwareTech) - scanner for CVE-2020-0609/0610 GitHub · Code repository · 2020-01-26
- Qualys ThreatPROTECT - Microsoft Windows Remote Desktop Gateway (RD Gateway) Remote Code Execution Vulnerabilities threatprotect.qualys.com · Blog · 2020-01-27
- SecurityLab.ru - Exploits published for critical Windows RD Gateway vulnerabilities securitylab.ru · News · 2020-01-26
Previous and next in vulnerability
AI-drafted from 9 cited sources; published ; last updated —.