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: $Revision: 1.36 $

Type: remote

Agent: windows

Family: Windows

Published: 2012/03/22

Modified: 2018/01/29

Dependencies: 58453

Risk Information

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

Temporal Vector: CVSS2#E:POC/RL:OF/RC: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: 2012/03/13

Vulnerability Publication Date: 2012/03/13

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

OSVDB: 80000, 80004

EDB-ID: 18606

MSFT: MS12-020

IAVA: 2012-A-0039

MSKB: 2621440, 2667402