Vulnerability record · CVE-2018-8397 · published 15 August 2018
CVE-2018-8397: Windows GDI memory handling remote code execution
Microsoft · Windows 7
CVE-2018-8397 is a remote code execution flaw in how the Windows Graphics Device Interface (GDI) handles objects in memory, described by Microsoft as a GDI+ Remote Code Execution Vulnerability. It affects Windows Server 2008, Windows 7 and Windows Server 2008 R2. The record gives no root-cause detail beyond memory handling, so the exact faulty operation is not specified.
Description
A remote code execution vulnerability exists in the way that the Windows Graphics Device Interface (GDI) handles objects in the memory, aka "GDI+ Remote Code Execution Vulnerability." This affects Windows Server 2008, Windows 7, Windows Server 2008 R2.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Automated analysis
high priorityCVSS 8.8 with network reachability and full code execution impact, plus a very high EPSS score, outweighs the lack of KEV listing and documented exploitation.
What it is
CVE-2018-8397 is a remote code execution flaw in how the Windows Graphics Device Interface (GDI) handles objects in memory, described by Microsoft as a GDI+ Remote Code Execution Vulnerability. It affects Windows Server 2008, Windows 7 and Windows Server 2008 R2. The record gives no root-cause detail beyond memory handling, so the exact faulty operation is not specified.
Impact
Successful exploitation lets an attacker execute arbitrary code in the context of the affected process, giving full control of confidentiality, integrity and availability per the CVSS vector. The attacker gains code execution on the target host rather than only a crash or information leak.
Attack surface
The vector is network-reachable with no privileges required, but user interaction is required, consistent with a crafted file or content that the victim must open or render. No authentication is needed on the attacker's side; the victim's action is the gate.
Exploitation
CISA KEV does not list this CVE, and the references are only vendor advisory, patch and third-party VDB entries with no exploit or PoC tags. EPSS is high at roughly 0.679 (99.3rd percentile), indicating elevated predicted exploitation activity despite the absence of documented in-the-wild use.
What to do
- Apply the Microsoft security update referenced in the MSRC advisory for CVE-2018-8397 on all affected Windows 7, Windows Server 2008 and Windows Server 2008 R2 systems.
- Prioritize patching internet-facing and user-workstation systems, since exploitation requires a victim to open or render crafted content.
- Where these platforms are still in use, restrict untrusted file and content handling and enforce attachment and download controls at mail and web gateways.
- Plan migration off Windows 7 and Windows Server 2008/2008 R2, which are past end of support and no longer receive routine fixes.
- Limit the impact of code execution by running users with least privilege and applying application control where feasible.
Detection
- Monitor for unexpected child processes spawned by GDI-related or graphics-rendering applications, which can indicate code execution via crafted content.
- Alert on crashes or abnormal terminations in processes that render untrusted images or documents, especially repeated events tied to the same file source.
- Review endpoint telemetry for suspicious file opens from email attachments, downloads or removable media preceding process creation anomalies.
- Track patch state of Windows 7 and Server 2008/2008 R2 hosts to find systems still exposed to this and other unsupported-platform flaws.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://www.securityfocus.com/bid/104994 | Third Party AdvisoryVDB Entry |
| http://www.securitytracker.com/id/1041460 | Third Party AdvisoryVDB Entry |
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-8397 | PatchVendor Advisory |
| http://www.securityfocus.com/bid/104994 | Third Party AdvisoryVDB Entry |
| http://www.securitytracker.com/id/1041460 | Third Party AdvisoryVDB Entry |
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-8397 | PatchVendor Advisory |
Track CVE-2018-8397 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2018-8397), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.