CVE DatabaseCVE-2017-0005
한국어 권고문 →
CVE-2017-00057.8/HIGHCISA KEV

Microsoft Windows GDI Privilege Escalation Vulnerability (CVE-2017-0005) Technical Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
windows, windows_server
Published Date
2017-03-17
CVSS v3.1
7.8
HIGH
EPSS (30d)
11.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Windows Vista SP2, 7 SP1, 8.1, RT 8.1, 10 (Gold, 1511, 1607), and Windows Server 2008, 2012 families.

Impact

Local attackers can execute arbitrary code in kernel mode and elevate privileges to SYSTEM via a crafted application.

Mitigation

Apply the official Microsoft cumulative security updates immediately and restrict local execution privileges on unpatched systems.

Affected Products & Version Scope

Windows Vista SP2, Windows 7 SP1, Windows 8.1, Windows RT 8.1, Windows 10 (Gold, 1511, 1607), and Windows Server 2008 SP2/R2 SP1, Windows Server 2012 Gold/R2

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Apply the official Microsoft security updates (MS17-013 or the latest cumulative update). You can force-install the required updates using the following PowerShell commands:

powershell
# Install Windows Update module and apply the security patch
Install-Module PSWindowsUpdate -Force -SkipPublisherCheck
Get-WindowsUpdate -KBArticleID KB4013429 -Install -AcceptAll -AutoReboot

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, restrict execution permissions in user-writable directories using AppLocker or Software Restriction Policies (SRP) to prevent unauthorized binaries from running.

powershell
# Restrict execution of executables in the Temp directory via Registry
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Safer\CodeIdentifiers\0\Paths\{temp-restriction}' -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Safer\CodeIdentifiers\0\Paths\{temp-restriction}' -Name 'Path' -Value '%USERPROFILE%\AppData\Local\Temp\*.exe' -PropertyType 'String' -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Safer\CodeIdentifiers\0\Paths\{temp-restriction}' -Name 'SaferFlags' -Value 0 -PropertyType 'DWord' -Force

3. Log Audit & IoC Verification Commands

Verify the system's patch level and check for missing security updates using the following script:

powershell
# Check OS version and verify if the security patch is installed
$OSInfo = Get-WmiObject -Class Win32_OperatingSystem
$PatchInstalled = Get-HotFix | Where-Object { $_.HotFixID -eq 'KB4013429' -or $_.Description -like '*Security Update*' }

Write-Host 'OS Caption:' $OSInfo.Caption
Write-Host 'OS Version:' $OSInfo.Version
if ($PatchInstalled) {
    Write-Host 'Security patch is successfully installed.' -ForegroundColor Green
} else {
    Write-Warning 'Security patch (KB4013429 or equivalent) is missing! Immediate action required.'
}
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Since this vulnerability is actively exploited in the wild, immediately apply the MS17-013 security update to all vulnerable Windows hosts.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability exists in the Windows Graphics Device Interface (GDI) when handling graphics objects and bitmap data in memory. The root cause is a lack of proper boundary validation within the GDI engine when copying or converting user-mode graphics object properties into kernel memory. This flaw allows an attacker to trigger memory corruption or an Out-of-Bounds write condition within the kernel pool.

2. Exploitation Mechanics & Attack Scenario

To exploit this vulnerability, an attacker must first gain local execution access on the target system, either through direct local login or by chaining another vulnerability (such as a browser-based Remote Code Execution). The attacker then executes a specially crafted binary that invokes GDI APIs (e.g., bitmap or font processing functions). This binary manipulates pointers within GDI kernel structures to achieve a 'Write-What-Where' primitive, allowing the attacker to overwrite kernel memory and swap the current process token with the SYSTEM token, resulting in full administrative control.

3. Infrastructure & Business Impact

As a vulnerability listed in the CISA KEV catalog, CVE-2017-0005 has been actively exploited in the wild by sophisticated threat actors. Local Privilege Escalation (LPE) vulnerabilities are critical because they are often chained with RCE exploits to compromise entire servers. Once SYSTEM privileges are obtained, attackers can disable endpoint security agents (EDR), deploy ransomware, and perform lateral movement across the internal network, causing severe business disruption.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2017-0005)

FAQ

Q1. How critical is CVE-2017-0005 and is it actively exploited in the wild?

CVE-2017-0005 is rated CVSS 7.8 (HIGH) with a 30-day EPSS exploitation probability of 11.0%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2017-0005?

Primary impacted vendors include microsoft across windows, windows_server. Scope summary: Windows Vista SP2, Windows 7 SP1, Windows 8.1, Windows RT 8.1, Windows 10 (Gold, 1511, 1607), and Windows Server 2008 SP2/R2 SP1, Windows Server 2012 Gold/R2

Q3. What temporary mitigations or workarounds exist for CVE-2017-0005 before patching?

[Mitigation] Apply the official Microsoft cumulative security updates immediately and restrict local execution privileges on unpatched systems. Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2017-0005

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (microsoft)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2017-0005 Microsoft Windows GDI Privilege Escalation Vulnerability (CVE-2017-0005) Technical Analysis and Mitigation Guide (CVSS 7.8) - Patch & Workaround | CVE Pulse