MS12-020: Vulnerabilities in Remote Desktop Could Allow Remote Code Execution (2671387) (uncredentialed check)

high Nessus Plugin ID 58435


The remote Windows host could allow arbitrary code execution.


An arbitrary remote code vulnerability exists in the implementation of the Remote Desktop Protocol (RDP) on the remote Windows host. The vulnerability is due to the way that RDP accesses an object in memory that has been improperly initialized or has been deleted.

If RDP has been enabled on the affected system, an unauthenticated, remote attacker could leverage this vulnerability to cause the system to execute arbitrary code by sending a sequence of specially crafted RDP packets to it.

This plugin also checks for a denial of service vulnerability in Microsoft Terminal Server.

Note that this script does not detect the vulnerability if the 'Allow connections only from computers running Remote Desktop with Network Level Authentication' setting is enabled or the security layer is set to 'SSL (TLS 1.0)' on the remote host.


Microsoft has released a set of patches for Windows XP, 2003, Vista, 2008, 7, and 2008 R2.

Note that an extended support contract with Microsoft is required to obtain the patch for this vulnerability for Windows 2000.

See Also

Plugin Details

Severity: High

ID: 58435

File Name: ms12-020_remote.nbin

Version: 1.87

Type: remote

Agent: windows

Family: Windows

Published: 3/22/2012

Updated: 10/9/2023

Risk Information


Risk Factor: Critical

Score: 9.6


Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: cpe:/o:microsoft:windows, cpe:/a:microsoft:remote_desktop_protocol

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/13/2012

Vulnerability Publication Date: 3/13/2012

Exploitable With

CANVAS (White_Phosphorus)

Core Impact

Metasploit (MS12-020 Microsoft Remote Desktop Checker)

Reference Information

CVE: CVE-2012-0002, CVE-2012-0152

BID: 52353, 52354

IAVA: 2012-A-0039

MSFT: MS12-020

MSKB: 2621440, 2667402